Copyright © 2021 by Anatolii Kosorukov
Authors: Anatolii Kosorukov (java1cprog@yandex.ru) [web site: rustkas.github.io/].
compile_option() = unicode | anchored | caseless | dollar_endonly | dotall | extended | firstline | multiline | no_auto_capture | dupnames | ungreedy | {newline, nl_spec()} | bsr_anycrlf | bsr_unicode | no_start_optimize | ucp | never_utf
mp() = {re_pattern, term(), term(), term(), term()}
nl_spec() = cr | crlf | lf | anycrlf | any
avoid_characters/0 | The list of characters which raise an error if escape character is not used. |
mp/1 | It is reduced form of re:compile/1 function. |
mp/2 | It is reduced form of re:compile/1 function. |
replace/1 | Replace one of shorthand pattern from the list [\s,\w,\h,v]
in a pattern string. |
save_pattern/1 | Make save Regex pattern which make literal for any character. |
tune/1 | Replace Regex pattern to more siple one. |
avoid_characters() -> Result
returns: The list of spectial characters.
The list of characters which raise an error if escape character is not used.
mp(Regex) -> MP | {error, badarg}
Regex: regex pattern
returns: Opaque data type containing a compiled regular expression
It is reduced form of re:compile/1
function.
Return opaque data type containing a compiled regular expression or raise an error badarg
.
See also:
mp().
mp(Regex, Options) -> MP | {error, badarg}
Regex: regex pattern
Options: additional regular expression metadata
returns: Opaque data type containing a compiled regular expression
It is reduced form of re:compile/1
function.
Return opaque data type containing a compiled regular expression or raise an error badarg
.
See also:
mp().
replace(Pattern) -> UpdatedPattern
Pattern: searched regex pattern for replacing
returns: Updated Regex pattern string
Replace one of shorthand pattern from the list [\s,\w,\h,v]
in a pattern string.
save_pattern(Pattern) -> SavePattern
returns: Save pattern
Make save Regex pattern which make literal for any character.
tune(Regex) -> Result
returns: Transformed Regex pattern.
Replace Regex pattern to more siple one.
Generated by EDoc