class REMatcher extends AnyRef
This class adds higher-order functions and lazy evaluation for pattern matching on top of the standard Java regular expressions library.
- Alphabetic
- By Inheritance
- REMatcher
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
REMatcher(str: String, compiled: Pattern)
- str
the String in which to perform pattern matching
- compiled
the java.util.regex.Pattern to use to perform matches
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
lazy val
capture: List[String]
Cached version of the matched groups in this matcher's string.
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
- val compiled: Pattern
-
def
eachFound: List[List[String]]
Return the list of lists of subgroups of matches.
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
foreach(func: (String, List[String]) ⇒ Unit): Unit
Call the specified function for each match with each match and the list of all matched groups, then with any remaining data to the end of the string.
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
map[T](f: (String) ⇒ T): List[T]
Map the specified function over the matches.
-
lazy val
matchStr: Box[String]
A Full Box containing the substring of this REMatcher's string containing the matches for the specified pattern, or Empty if no match exists.
-
lazy val
matches: Boolean
Matches for the pattern in the specified string.
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- val str: String
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )