If you have modified your code like the above, then you could be able to understand by yourself that, first group does not matches anything, and it is an optional match./(\.?)(\S+)/; print ">$1<>$2<\n";
In reply to Re: Removing first part of string with regex
by sathiya.sw
in thread Removing first part of string with regex
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |