in reply to Re^2: separating two sententences
in thread separating two sententences

/"\(\w+\)"\/

In this regex, the '(' and ')' (parenthesis) characters, which would normally be regex metacharacters marking the start and end of a capture group, are escaped by \ (backslash) characters that return them to being literal '(' and ')' characters. Again, see muba's analysis above Update: ...and reply below. (Missed that last \. Bad case of backslashitis.).

Replies are listed 'Best First'.
Re^4: separating two sententences
by muba (Priest) on Sep 16, 2011 at 05:02 UTC

    Not to mention the backslash that escapes the forward slash that's supposed to mark the end of the regex. /...\/ should read /.../.