Notes on the Regular Expression Library
In the regular expression library, the dot (.) character no longer matches new lines or carriage returns. Conversely, the not-dot does match new lines and carriage returns. This change provides a safety mechanism preventing egregious backtracking of the entire SIP message body when there are no matches. Thus, the Oracle® Enterprise Session Border Controller reduces backtracking to a single line within the body. In addition, there is now support for:
Syntax | Description |
---|---|
\s | Whitespace |
\S | Non-whitespace |
\d | Digits |
\D | Non-digits |
\R | Any \r, \n, \r\n |
\w | Word |
\W | Non-word |
\A | Beginning of buffer |
\Z | End of buffer |
\ | Any character including newline, in the event that the dot (.) is not |
In addition, there is:
- Escaped character shortcuts (\w\W\S\s\d\D\R) operating inside brackets [...]