AS:i:-4 AS:i:4
Is there a regex pattern that could capture the number (both -4 and 4) from these strings? I would ordinarily use /\d+/ to remove all non-numeric characters however I do not know how to handle an extra character that may or may not be there without having to use 2 regexes e.g. /-\d+/ and /\d+/.
In reply to Remove all non-numeric characters except for an optional negative sign (-) by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |