From b0611a7363d2d3ff05e81ee35caa5bf3b9022bc5 Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Wed, 28 Jul 2021 09:17:47 -1000 Subject: [PATCH] ;doc: regexps: list style that renders in vs code --- hledger/hledger.m4.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/hledger/hledger.m4.md b/hledger/hledger.m4.md index 04bfbc64a..6496b8da0 100644 --- a/hledger/hledger.m4.md +++ b/hledger/hledger.m4.md @@ -310,14 +310,14 @@ hledger's regular expressions come from the library. If they're not doing what you expect, it's important to know exactly what they support: -#. they are case insensitive -#. they are infix matching (they do not need to match the entire thing being matched) -#. they are [POSIX ERE] (extended regular expressions) -#. they also support [GNU word boundaries] (`\b`, `\B`, `\<`, `\>`) -#. they do not support [backreferences]; if you write `\1`, it will match the digit `1`. +1. they are case insensitive +2. they are infix matching (they do not need to match the entire thing being matched) +3. they are [POSIX ERE] (extended regular expressions) +4. they also support [GNU word boundaries] (`\b`, `\B`, `\<`, `\>`) +5. they do not support [backreferences]; if you write `\1`, it will match the digit `1`. Except when doing text replacement, eg in [account aliases](#regex-aliases), where [backreferences] can be used in the replacement string to reference [capturing groups] in the search regexp. -#. they do not support [mode modifiers] (`(?s)`), character classes (`\w`, `\d`), or anything else not mentioned above. +6. they do not support [mode modifiers] (`(?s)`), character classes (`\w`, `\d`), or anything else not mentioned above. [POSIX ERE]: http://www.regular-expressions.info/posix.html#ere [backreferences]: https://www.regular-expressions.info/backref.html