How do I express ":" but not preceded by "\" in a Java regular expression?

Posted by jjujuma on Stack Overflow See other posts from Stack Overflow or by jjujuma
Published on 2010-04-25T20:28:10Z Indexed on 2010/04/25 20:33 UTC
Read the original article Hit count: 137

Filed under:
|

How can I express "not preceded by" in a Java regular expression? For example I would like to search for ":" but only when it is not directly preceded by "\". How can I do this?

© Stack Overflow or respective owner

Related posts about java

Related posts about regex