frodo72, Don't fool yourself, as you signature says.
dbwiz has given you good advice. Assigning $1 without testing is almost a capital sin in Regex parlance. Your initial code would pass a test against the only example provided by the OP, but it would fail in many other cases.
Cheers
In reply to Re^4: what is the best way to seperate the digits and strings from variable ?
by rnahi
in thread what is the best way to seperate the digits and strings from variable ?
by swaroop
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |