I am looking to create a template consisting of some fixed parts and a variable (actually the name of a business unit). In fact, there is a high probability that a variable contains some specific regular characters that can be recognized as controlling regular expressions (for example, + or *).
Is there any regex tag that notices that the template substructure should only be considered as text and ignore the specific char meaning?
some kind of:
regex_fixed_part [escape]business + unit[/espace] regex_fixed_part
here the business + unit will be replaced in the business \ + unit parser
Obviously, I could have manually avoided the entire char regular expression, but I'm looking for a tidier method.
thank
source
share