Regular Expressions
Regular expressions (regexes) are almost omnipresent in FreeSWITCH configuration. They are "formulas" used to describe a string of text. For example, with a regular expression (regex) you can denotes all of: "cats", "cat", "supercat", "cAt" and "anycAts". That regex would be: ^.*c[aA]t.?$.. Explanation: caret ("^") means the beginning of the string. Then the point means "whatever character". The asterisk denotes an indefinite quantity (zero or more) of the preceding character - in this case of the "whatever character". The character "c" denotes... the character "c". Then the square brackets (and their content) denote a character that can be one of the list enumerated inside the square brackets (so, in this case the character ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access