From this starting point, you can then attempt to optimize some the cases, if you want. But there's no need to: perl will optimize them for you. --Dave$interest !~ ( ^ # start of line -? # optionally negative (?: \d+ # numbers with no decimal point | \d+\.\d+ # numbers with decimal point in middle | \.\d+ # numbers with decimal point at start | \d+\. # numbers with decimal point at end ) $ # end of line /x;
In reply to Re: Re: What does this regex do?
by dpuu
in thread What does this regex do?
by sulfericacid
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |