際際滷

際際滷Share a Scribd company logo
Regular Expression
Part 5
Learn
www.omid.bog
Regular Expressions are "formulas" used to describe a string of text. Regular expressions (regex, regexes) are at
the heart of dialplan, and are used in many other parts of FreeSWITCH configuration. You can describe patterns
of extensions, DIDs, users, callers, callees, gateways, etc with regular expressions in FreeSWITCH.
In dialplan regexes are used to define the "expression" criterion of the "condition" tag.
Freeswitch_training_part5_REGEX_Tutorial_FreeSWITCH .pptx
https://regex101.com/
The regex FreeSWITCH console command needs at least two arguments: the
data to test and the pattern to match against. The arguments are separated by a |
(pipe) character. The regex command will return true if the data and the pattern
match, otherwise it will return false.
You can check regular expression online here:
https://regex101.com/
Freeswitch_training_part5_REGEX_Tutorial_FreeSWITCH .pptx
Freeswitch_training_part5_REGEX_Tutorial_FreeSWITCH .pptx
Freeswitch_training_part5_REGEX_Tutorial_FreeSWITCH .pptx
Freeswitch_training_part5_REGEX_Tutorial_FreeSWITCH .pptx
Freeswitch_training_part5_REGEX_Tutorial_FreeSWITCH .pptx
Freeswitch_training_part5_REGEX_Tutorial_FreeSWITCH .pptx
Freeswitch_training_part5_REGEX_Tutorial_FreeSWITCH .pptx
Freeswitch_training_part5_REGEX_Tutorial_FreeSWITCH .pptx
Freeswitch_training_part5_REGEX_Tutorial_FreeSWITCH .pptx
Freeswitch_training_part5_REGEX_Tutorial_FreeSWITCH .pptx
Freeswitch_training_part5_REGEX_Tutorial_FreeSWITCH .pptx
Freeswitch_training_part5_REGEX_Tutorial_FreeSWITCH .pptx
Freeswitch_training_part5_REGEX_Tutorial_FreeSWITCH .pptx
Freeswitch_training_part5_REGEX_Tutorial_FreeSWITCH .pptx
Freeswitch_training_part5_REGEX_Tutorial_FreeSWITCH .pptx

More Related Content

Freeswitch_training_part5_REGEX_Tutorial_FreeSWITCH .pptx

  • 2. Regular Expressions are "formulas" used to describe a string of text. Regular expressions (regex, regexes) are at the heart of dialplan, and are used in many other parts of FreeSWITCH configuration. You can describe patterns of extensions, DIDs, users, callers, callees, gateways, etc with regular expressions in FreeSWITCH.
  • 3. In dialplan regexes are used to define the "expression" criterion of the "condition" tag.
  • 6. The regex FreeSWITCH console command needs at least two arguments: the data to test and the pattern to match against. The arguments are separated by a | (pipe) character. The regex command will return true if the data and the pattern match, otherwise it will return false.
  • 7. You can check regular expression online here: https://regex101.com/