in reply to One regex construct to handle multiple string types
works for me.while(<DATA>) { /(.*\.)?(\S+)/; print "$2\n"; } __DATA__ 2L bar.2L bar.ber.bir. 2L bar.ber.bir.2L
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: One regex construct to handle multiple string types
by ikegami (Patriarch) on Nov 29, 2008 at 11:35 UTC |