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:
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: RegExp substitution
by Keystone (Initiate) on Apr 11, 2014 at 07:19 UTC |