Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Regular expression for parsing authors information from a scientic article
- Aa Aaa 1, Bb Bbb 2 and Cc Ccc 1
- 1 Institut xx Xx, Some University, Xxxx 14, US-10000 NewYork, USA; E-Mails: aa.aaa@edu.com; cc.ccc@edu.com
- 2 Institut zz Zzz, Some University2, Zzzz 20, US-10000 NewYork, USA; E-Mail: bb.bbb@edu.com
- Aa Aaa - Institut xx Xx, Some University, Xxxx 14, US-10000 NewYork, USA - aa.aaa@edu.com
- Bb Bbb - Institut zz Zzz, Some University2, Zzzz 20, US-10000 NewYork, USA - bb.bbb@edu.com
- Cc Ccc - Institut xx Xx, Some University, Xxxx 14, US-10000 NewYork, USA - cc.ccc@edu.com
- $_ = "nn" . $input;
- 1 while s/^(.*?n?)n{1,2}s*([^d]+)s+(d+)s*?(?:s*and|[,ns])(.*?)(?<=n)(3s+)([^n]*)(n.*$|$)/$1$2 - $6nn$4$5$6$7/gs;
- s/nn.*$//s;
- print $_;
Add Comment
Please, Sign In to add comment