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:
In reply to Re^3: RegExp substitution
by AnomalousMonk
in thread RegExp substitution
by Keystone
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |