or to remove the text../^(\d+)/; print $1;
The last example will output the actual string if it doesn't match the regex though. The key will be to verify that you're only giving it what it's supposed to be reveiving.. Richs/^(\d+).*/\1/; print;
In reply to Re: String Length
by rchiav
in thread String Length
by ep
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |