Apart for the previous problem you should also anchor your regexps:
/^-[45][15j]$/ # note the ^ and $otherwise you will match the regexp anywhere in the string: "toto-45tata" would match
Then your interpretation is right, otherwise it would be
if any character is '-' followed by 4 or 5 followed by 1 or 5 or j...
In reply to Re: Regexp experts, come to rescue!
by mirod
in thread Regexp experts, come to rescue!
by bman
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |