if ( /^\d+\.(.*)/sg ) {
Your pattern is anchored at the beginning of the string so the /g option is superfluous. The string in $_ contains only one line so the use of the /s option is also superfluous.
In reply to Re^2: Regexp and reading a file n-lines at time
by jwkrahn
in thread Regexp and reading a file n-lines at time
by epimenidecretese
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |