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.jsp
but alsocom/tast.jsp
orcom/txst.jsp
-
com/*sp
- matches all.jsp
files in thecom
directory -
org/beangle/**/*.jsp
- matches all.jsp
files underneath -
com/**/test.jsp
- matches alltest.jsp
files underneath thecom
path theorg/beangle
path -
org/**/servlet/bla.jsp
- matchesorg/beangle/servlet/bla.jsp
but alsoorg/beangle/testing/servlet/bla.jsp
andorg/servlet/bla.jsp
Attributes
- Since
-
3.1.0
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any