Advertisement
kernel

Perl Regexp lookahead

Jul 31st, 2012
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.18 KB | None | 0 0
  1. htmlOut = htmlOut.replaceAll("&(?![a-zA-Z]+;)", "&"); // replace all ampersands (which are not followed by an entity expression like ä) with & via perl regexp lookahead.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement