in reply to Regex, loops and subs
Try replacing all the match-everything dots in your regular expressions by negative character classes. So for example, instead of
dom/^.+?:.+?\. (.+)+$/
m/^[^:]+:[^.]+\. (.+)$/
(what's with the plus-sign at the end anyway, you're basically saying "match one or many of any character one or many times"?)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Regex, loops and subs
by Hena (Friar) on Nov 15, 2005 at 11:15 UTC | |
by tirwhan (Abbot) on Nov 15, 2005 at 11:33 UTC |