regexdot-0.12.2.1: A polymorphic, POSIX, extended regex-engine.

Safe HaskellNone
LanguageHaskell2010

RegExDot.DSL

Contents

Description

AUTHOR
Dr. Alistair Ward
DESCRIPTION
TODO
Could [] & Meta be instances of a type-class which has methods (-:) etc., allowing the former to prepend captureGroup & the latter Require ?
Synopsis

Functions

Operators

(-:) :: Pattern a -> Concatenation a -> Concatenation a infixr 5 Source #

Prepend an unrepeated Pattern, to the specified Concatenation.

(?:) :: Pattern a -> Concatenation a -> Concatenation a infixr 5 Source #

Prepend an optional Pattern, to the specified Concatenation.

(??:) :: Pattern a -> Concatenation a -> Concatenation a infixr 5 Source #

A non-greedy version of ?:.

(*:) :: Pattern a -> Concatenation a -> Concatenation a infixr 5 Source #

Prepend a Pattern, repeatable zero or more times, to the specified Concatenation.

(*?:) :: Pattern a -> Concatenation a -> Concatenation a infixr 5 Source #

A non-greedy version of *:.

(+:) :: Pattern a -> Concatenation a -> Concatenation a infixr 5 Source #

Prepend a Pattern, repeatable one or more times, to the specified Concatenation.

(+?:) :: Pattern a -> Concatenation a -> Concatenation a infixr 5 Source #

A non-greedy version of +:.

(#->#:) :: (Pattern a, RepetitionBounds) -> Concatenation a -> Concatenation a infixr 5 Source #

Prepend a Pattern, repeated a range of times, to the specified Concatenation.

(#->#?:) :: (Pattern a, RepetitionBounds) -> Concatenation a -> Concatenation a infixr 5 Source #

A non-greedy version of #->#:.

(#->:) :: (Pattern a, Repetitions) -> Concatenation a -> Concatenation a infixr 5 Source #

Prepend a Pattern, repeated at least a specified number of times, to the specified Concatenation.

(#->?:) :: (Pattern a, Repetitions) -> Concatenation a -> Concatenation a infixr 5 Source #

A non-greedy version of #->:.

(#:) :: (Pattern a, Repetitions) -> Concatenation a -> Concatenation a infixr 5 Source #

Prepend a Pattern, repeated a precise number of times, to the specified Concatenation.

(<~>) infixr 5 Source #

Arguments

:: AnchorSpecification

A specification for the anchors required around the expression.

-> Concatenation a

The bare list of repeatable patterns to anchor.

-> ExtendedRegEx a

The completed regex.