org.beangle.commons.regex
Members list
Type members
Classlikes
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
AntPathPattern.type
AntPattern implementation for Ant-style path patterns. Examples are provided below.
AntPattern implementation for Ant-style path patterns. Examples are provided below.
Part of this mapping code has been kindly borrowed from Apache Ant.
The mapping matches URLs using the following rules:
-
? matches one character
-
- matches zero or more characters
-
** matches zero or more 'directories' in a path
Some examples:
-
com/t?st.jsp- matchescom/test.jspbut alsocom/tast.jsporcom/txst.jsp -
com/*sp- matches all.jspfiles in thecomdirectory -
org/beangle/**/*.jsp- matches all.jspfiles underneath -
com/**/test.jsp- matches alltest.jspfiles underneath thecompath theorg/beanglepath -
org/**/servlet/bla.jsp- matchesorg/beangle/servlet/bla.jspbut alsoorg/beangle/testing/servlet/bla.jspandorg/servlet/bla.jsp
Attributes
- Since
-
3.1.0
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any