package dsl
This package contains the DSL for building regular expressions. It is inspired by the [Re](http://re-lib.rubyforge.org/) library. It also provides some useful implicit conversions to be used more conveniently.
- Alphabetic
- By Inheritance
- dsl
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
trait
DslGreedyRegex
extends DslRegex
A greedy operator regular expression.
A greedy operator regular expression. It matches as many characters as possible.
-
class
DslRegex
extends Regex
An instance of a regular expression that supports DSL methods for combining them together
- implicit final class RichChar extends AnyVal
Value Members
-
def
any(classes: CharRange*)(implicit impl: RegexImpl): DslRegex
Matches any character in the classes.
Matches any character in the classes. A character class is either a single character
c, a rangea-z -
def
any(implicit impl: RegexImpl): DslRegex
Matches any character
- implicit def char2charrange(c: Char): CharRange
-
def
digit(implicit impl: RegexImpl): DslRegex
Matches any digit (equivalent to
[0-9]) -
def
digits(implicit impl: RegexImpl): DslRegex
Matches digits (equivalent to
[0-9]+) -
def
empty(implicit impl: RegexImpl): DslRegex
Matches the empty string
-
def
hexDigit(implicit impl: RegexImpl): DslRegex
Matches any hexadecimal digit (equivalent to
[A-Fa-f0-9]) -
def
hexDigits(implicit impl: RegexImpl): DslRegex
Matches hexadecimal digits (equivalent to
[A-Fa-f0-9]+) -
def
none(classes: CharRange*)(implicit impl: RegexImpl): DslRegex
Matches any character that is not in any of the classes
-
def
nonspace(implicit impl: RegexImpl): DslRegex
Matches any non space character (equivalent to
\S) -
def
nonspaces(implicit impl: RegexImpl): DslRegex
Matches non space characters (equivalent to
\S+) -
def
raw(str: String)(implicit impl: RegexImpl): DslRegex
Matches the literal characters of the string (special regular expression characters are considered as raw characters
-
def
space(implicit impl: RegexImpl): DslRegex
Matches any space character (equivalent to
\s) -
def
spaces(implicit impl: RegexImpl): DslRegex
Matches space characters (equivalent to
\s+) -
def
word(implicit impl: RegexImpl): DslRegex
Matches any word (equivalent to
\w+) -
def
wordChar(implicit impl: RegexImpl): DslRegex
Matches any word character (equivalent to
\w)
Gnieh Tekstlib
Gnieh Tekstlib is a library grouping standard classes and packages allowing people to work with texts and documents.
Package Structure
gnieh.diffdiff manipulation,gnieh.hyphenhyphenation for text in any language,gnieh.stringstrings manipulation for text processing,gnieh.mustachelightweight mustache template engine,gnieh.pppretty printing related classes,gnieh.regexregular expressions manipulation.