mogo dev blog

 

java regexp NOT match AND
10/02/2010 20:44
To create a regular expression that does not match a URL ( or more ) but matches another, or more, the following can be used. First two negate the match with ?! .


(?!/ui/login.do)(?!/ui/registration/.*)(/ui/.*)


pfeeuw.
search blog(s)
articles comments
feed rss
  • contact