ram
3/16/2015 12:00:00 PM
"Tony Johansson" <johansson.andersson@telia.com> writes:
>Can somebody explain this regular expression
>document.getElementById('rovarsprak').value.replace(/([bcdfghjklmnpqrstvwxz])o\1/gi,
>'$1');
It is not clear what »this« refers to.
The regular expression describes a string of three characters.
First, one of "bcdfghjklmnpqrstvwxz", then "o", and, finally,
a character that is the same character as the first character.