Module re_tuner

Helper function for working with Regular Expression Erlanb re module.

Copyright © 2021 by Anatolii Kosorukov

Authors: Anatolii Kosorukov (java1cprog@yandex.ru) [web site: rustkas.github.io/].

Description

Helper function for working with Regular Expression Erlanb re module.

Function Index

avoid_characters/0The list of characters which raise an error if escape character is not used.
save_pattern/1Make save Regex pattern which make literal for any character.
tune/1Replace Regex pattern to more siple one.

Function Details

avoid_characters/0

avoid_characters() -> Result

returns: The list of spectial characters.

The list of characters which raise an error if escape character is not used.

save_pattern/1

save_pattern(Pattern) -> SavePattern

returns: Save pattern

Make save Regex pattern which make literal for any character.

tune/1

tune(Regex) -> Result

returns: Transformed Regex pattern.

Replace Regex pattern to more siple one.


Generated by EDoc