Recent

Author Topic: Problem with multi line regexes  (Read 220 times)

Basile-B

  • Sr. Member
  • ****
  • Posts: 457
    • GH...
Problem with multi line regexes
« on: April 26, 2019, 12:46:32 am »
The following regex, used in synedit search : 
Quote
else\ *\n\ *{
, gives this error
Quote
TRegExpr(comp): Nested *?+ (pos 12)
.

But it work fine on regex101 for example: https://regex101.com/r/Cf2MY4/1

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 5576
    • wiki
Re: Problem with multi line regexes
« Reply #1 on: April 26, 2019, 01:16:10 am »
I am not sure backslashes are needed in front of spaces, but that should not matter either.

SynEdit use the regex, that came with the original synedit (nearly 2 decades ago). This has not been worked on since. Very possible that it is not very good.