Copyright © 2021 by Anatolii Kosorukov
Authors: Anatolii Kosorukov (java1cprog@yandex.ru) [web site: rustkas.github.io/].
mp() = {re_pattern, term(), term(), term(), term()}
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. |
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().
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