Check the string for a regular expression pattern fragment.

This is convenient if you need to use one operator to check for the presence in the text, for example, of a fragment like "B22", when there is a possibility that it is written with a big 'B', or a small 'v', in the English or Russian alphabet.

Call:
bool str_regex_match(string source, string code);


Here:

source - string to search,

code - regular expression.


(см regex templates)