in reply to Removing first part of string with regex
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";
|
|---|