Syntactic Confectionery Delight | |
PerlMonks |
Re: regex and string functions help needed.by holli (Abbot) |
on Oct 25, 2006 at 16:47 UTC ( [id://580623]=note: print w/replies, xml ) | Need Help?? |
valanp, first of all, you have changed the original content of your node without leaving notice. This will confuse future readers. Please don't do that. As for your problem: next time please include complete sample data and input/expected output specs. In your OP there was only one special case. Anyway, here is a subroutine for you that solves your problem:
holli, /regexed monk/
In Section
Seekers of Perl Wisdom
|
|