in reply to Regexp help
A regular expression isn't necessary. How about just using split with a ':' delimiter, then taking the second array element of the result?
main::(-e:1): 1 DB<1> $str = "R4:abcxyz45:LNX" DB<2> @words = split(':',$str) DB<3> x $words[1] 0 'abcxyz45'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Regexp help
by Marshall (Canon) on Sep 03, 2010 at 19:48 UTC | |
|
Re^2: Regexp help
by jwkrahn (Abbot) on Sep 03, 2010 at 17:51 UTC |