Class RouteEscaper


public class RouteEscaper extends REVisitor<MalformedRouteException>
The route escaper transformer a regular expression with the following rules:
  • substitute any char occurence of the source s by the destination d
  • replace the any by the negated destination character [^]
  • append &&[^s] to any top character class
A few examples with / replaced by _:
  • / becomes _
  • . becomes [^/]
  • [a/] becomes [a_&[^/]]
  • [,-1] becomes [,-.0-1_&&[^/]]
Version:
$Revision$
Author:
Julien Viet