/
Why don't my regular expressions work?
Why don't my regular expressions work?
Answer
The regular expression language used is that which is built into Java 2.
However, due to the way the Confluence macro rendering engine works, some modifications have had to be made.
Consult the following table:
Original | Function | Problem | Substitute |
---|---|---|---|
| | Boolean | Interpreted by Confluence as 'next parameter'. | , |
, | Comma | Because it is substituting for the pipe, it can't be listed directly. | x2C |
\ | Escape marker | Has to be double-escaped. |
|
{ | Macro start marker | Has to be escaped. | x7B |
} | Macro end marker | Has to be escaped. | x7D |
Use (?s) for dotall mode. In dotall mode, the expression . matches any character, including a line terminator. It is useful when filtering content that includes line breaks.
, multiple selections available,
Related content
Why don't my regular expressions work?
Why don't my regular expressions work?
More like this
How to use regular expressions
How to use regular expressions
More like this
Regular Expression Check validator
Regular Expression Check validator
More like this
Quotation Mark is not being picked up by RegEx on Text Filter
Quotation Mark is not being picked up by RegEx on Text Filter
More like this
_HowToUseRegularExpressions
_HowToUseRegularExpressions
More like this
Match Supplier
Match Supplier
More like this