Regular expressions for sequences.
Regular expressions for sequences.
(* e & es)
Matches its body zero or more times. Exists in greedy () and reluctant (?) variants.
Matches its body zero or more times. Exists in greedy (*) and reluctant (*?) variants.
(*' sep e & es)
Matches its body zero or more times, separated by sep. Exists in greedy (') and reluctant ('?) variants.
Matches its body zero or more times, separated by sep. Exists in greedy (*') and reluctant (*'?) variants.
(*'? sep e & es)
Matches its body zero or more times, separated by sep. Exists in greedy (') and reluctant ('?) variants.
Matches its body zero or more times, separated by sep. Exists in greedy (*') and reluctant (*'?) variants.
(*? e & es)
Matches its body zero or more times. Exists in greedy () and reluctant (?) variants.
Matches its body zero or more times. Exists in greedy (*) and reluctant (*?) variants.
(+ e & es)
Matches its body one or more times. Exists in greedy (+) and reluctant (+?) variants.
Matches its body one or more times. Exists in greedy (+) and reluctant (+?) variants.
(+' sep e & es)
Matches its body one or more times separated by sep. Exists in greedy (+') and reluctant (+'?) variants.
Matches its body one or more times separated by sep. Exists in greedy (+') and reluctant (+'?) variants.
(+'? sep e & es)
Matches its body one or more times separated by sep. Exists in greedy (+') and reluctant (+'?) variants.
Matches its body one or more times separated by sep. Exists in greedy (+') and reluctant (+'?) variants.
(+? e & es)
Matches its body one or more times. Exists in greedy (+) and reluctant (+?) variants.
Matches its body one or more times. Exists in greedy (+) and reluctant (+?) variants.
(? e & es)
Matches its body zero or once. Exists in greedy (?) and reluctant (??) variants.
Matches its body zero or once. Exists in greedy (?) and reluctant (??) variants.
(?? e & es)
Matches its body zero or once. Exists in greedy (?) and reluctant (??) variants.
Matches its body zero or once. Exists in greedy (?) and reluctant (??) variants.
(as name e & es)
Like cat but saves the match as a group under the specified name. (:match and :rest are reserved names).
Like cat but saves the match as a group under the specified name. (:match and :rest are reserved names).
(boot-accepting-vm insts)
Starts an accepting vm. An accepting vm ignore submatches.
Starts an accepting vm. An accepting vm ignore submatches.
(boot-grouping-vm insts regbank)
(boot-grouping-vm insts regbank init-pos inc-pos)
(cat e & es)
Concatenates several seqexps into one.
Concatenates several seqexps into one.
(exec re coll & {grps :groups})
Executes the regular expression, returns either nil on failure or a map of group names to matched sub-sequences. They are two special groups: :match and :rest, corresponding to the matched sub sequence and the rest of the input sequence.
Executes the regular expression, returns either nil on failure or a map of group names to matched sub-sequences. They are two special groups: :match and :rest, corresponding to the matched sub sequence and the rest of the input sequence.
(exec-tree re coll)
(exec-tree mk-node re coll)
Executes the regular expression, returns either nil on failure or a map with two keys: :match and :rest. Under :match is found a tree built out of named groups. Group names MUST be vectors.
Executes the regular expression, returns either nil on failure or a map with two keys: :match and :rest. Under :match is found a tree built out of named groups. Group names MUST be vectors.
(repeat n e)
(repeat min max e)
Matches its body min to max times (inclusive). Exists in greedy (repeat) and reluctant (repeat?) variants.
Matches its body min to max times (inclusive). Exists in greedy (repeat) and reluctant (repeat?) variants.
(repeat' n sep e)
(repeat' min max sep e)
Matches its body min to max times (inclusive) separated by sep. Exists in greedy (repeat') and reluctant (repeat'?) variants.
Matches its body min to max times (inclusive) separated by sep. Exists in greedy (repeat') and reluctant (repeat'?) variants.
(repeat'? n sep e)
(repeat'? min max sep e)
Matches its body min to max times (inclusive) separated by sep. Exists in greedy (repeat') and reluctant (repeat'?) variants.
Matches its body min to max times (inclusive) separated by sep. Exists in greedy (repeat') and reluctant (repeat'?) variants.
(repeat? n e)
(repeat? min max e)
Matches its body min to max times (inclusive). Exists in greedy (repeat) and reluctant (repeat?) variants.
Matches its body min to max times (inclusive). Exists in greedy (repeat) and reluctant (repeat?) variants.
(| e)
(| e & es)
Matches either of its arguments.
Matches either of its arguments.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close