Recent

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

guest58172

  • Guest
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: 9792
  • Debugger - SynEdit - and more
    • 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.

 

TinyPortal © 2005-2018