Pattern
find
external
(λ [&Pattern, &String] Int)
Finds the index of a pattern in a string. Returns -1 otherwise.
from-chars
defn
(λ [(Ref (Array Char))] Pattern)
Creates a pattern that matches a group of characters from a list of those characters.
global-match
external
(λ [&Pattern, &String] (Array (Array String)))
Finds all matches of a pattern in a string as a nested array. Returns [] otherwise.
match
external
(λ [&Pattern, &String] (Array String))
Finds the match groups of the first match of a pattern in a string. Returns [] otherwise.
match-str
external
(λ [&Pattern, &String] String)
Finds the first match of a pattern in a string. Returns [] otherwise.
substitute
external
(λ [&Pattern, &String, &String, Int] String)
Finds all matches of a pattern in a string and replaces it by another n times (-1 for all occurrences).