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"?)
In reply to Re: Regex, loops and subs
by tirwhan
in thread Regex, loops and subs
by Hena
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |