in reply to Re^2: RegExp substitution
in thread RegExp substitution

1st substitute/([A-Z][a-z][\W][\b])/<userinput>/;

The critical thing to remember about  [...] character classes is that most regex metacharacters are not meta-special inside them. Thus,  [.] (which you have used elsewhere) matches a single  '.' (period) character and  [\b] matches a single backspace control-character. So the pattern above might be described as:

Is any of that what you really wanted?

Replies are listed 'Best First'.
Re^4: RegExp substitution
by Keystone (Initiate) on Apr 11, 2014 at 07:19 UTC

    Looking back I'm pretty sure that it is not, and having read your other posting directing me to the perl tutorials (less than 5 minutes in to reading them) I've discovered why my RegEx wasn't working as intended. I've posted my findings in a direct reply to that post.