I have a regex expression that matches with ampersand extended characters like etc.
However, this also matches with some extended text characters, e.g. â (â
which I want to allow.
How do I add a whitelist to the expression to allow this, and a few others? Need to exclude all **acute, **circ, **grav and **uml
Something like
although I seem to be getting intermittent results testing this.
Many thanks.
Code:
&[^ ;]+;
However, this also matches with some extended text characters, e.g. â (â
How do I add a whitelist to the expression to allow this, and a few others? Need to exclude all **acute, **circ, **grav and **uml
Something like
Code:
(&[^ ;]+;)(?!&[AaEeIiOoUuYy]+(acute|circ|grav|uml)+;)
Many thanks.