The conversion from strings to numbers is automagic, though you could write: $VAR1 = ['M4568-51', 'M', 0 + '4568', 0 + '51' ]; to force the conversion.
Can you post a fragment of code that demonstrates the problem?
In reply to Re: extracting numbers with a regex
by dws
in thread extracting numbers with a regex
by coolmichael
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |