in reply to
Re^2: Regex not working
in thread
Regex not working
As pointed out below by
jethro
, the problem is that you are using the "g" modifier in your first regex, when you don't really need or want to do that. Remove the "g", and it'll do what you want.
Comment on
Re^3: Regex not working
Replies are listed 'Best First'.
Re^4: Regex not working
by
Perllace
(Acolyte)
on Sep 14, 2011 at 05:45 UTC
Thank you graff and jethro..it works
[reply]
In Section
Seekers of Perl Wisdom