File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
feature/matcher/src/commonMain/kotlin/com/neoutils/neoregex/feature/matcher/model Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ interface Syntax {
38
38
) : Syntax {
39
39
40
40
private val charSetRegex = """ (\\{2})|(\\\[)|(\[\^?)((?:\\{2}|\\\]|[^\]])*)(\])?""" .toRegex()
41
- private val groupRegex = """ (\\{2})|(\\\[)|(\[(?:\\{2}|\\\]|[^\]])*\]?)|(\\\()|(\((?:\?[:=!])?)((?:\\{2}|\\\)|\\\[|\[.*?\] |\([^\)]*\)|[^\)])*)(\))?""" .toRegex()
41
+ private val groupRegex = """ (\\{2})|(\\\[)|(\[(?:\\{2}|\\\]|[^\]])*\]?)|(\\\()|(\((?:\?[:=!])?)((?:\\{2}|\\\)|\\\[|\[(?:\\{2}|\\\]|[^\]])*\]? |\([^\)]*\)|[^\)])*)(\))?""" .toRegex()
42
42
private val quantifierRegex = """ (\\{2})|(\\\[)|(\[(?:\\{2}|\\\]|[^\]])*\]?)|(\\\{)|(\{\w,?\w?\})""" .toRegex()
43
43
private val escapeReservedRegex = """ (\\{2})|(\\[{}()\[\]$^+*?|\w])""" .toRegex()
44
44
private val escapedCharRegex = """ (\\{2})|(\\[DdWwSsHhVvR])""" .toRegex()
You can’t perform that action at this time.
0 commit comments