in reply to String Length
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;
|
|---|