[Solved] Difference between “(\S+)\.|” and “(\S+) |” in Perl [duplicate]
(\S+)\.| will match and capture any number (one or more) of non-space characters, followed by a dot character. (\S+) | will match and capture any number (one or more) of non-space characters, followed by a space character (assuming the regular expression isn’t modified with a /x flag). In both cases, these constructs appear to be … Read more