Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Newbie: Regular expresion
- Jose Luis
September 18, 2009, 9:17 am
rate this thread
Re: Newbie: Regular expresion
Not using regular expressions I would use the split function to
But what you are missing is the non-greedy variant of the initial
*. By default quantifiers af greedy, that is that they match as much
as posible. If you instead uses (.*?) it will match as little as
Another soulution woulb be to replace (.*) with ([^;]*). This matches
as many non-semicolon as possible.
- Tad J McClellan
September 18, 2009, 2:27 pm
- » FAQ 5.38 How do I select a random line from a file?
- — Next thread in » PERL Discussions