Author Topic: RegEx Complexity  (Read 832 times)

jporkkahtc

  • Senior Community Member
  • Posts: 1506
  • Hero Points: 129
  • Text
RegEx Complexity
« on: June 10, 2015, 10:32:50 pm »


I did this: Replace all "\n+", "\n", Regular expression (UNIX)
to trim all the extra blank lines from a C Preprocessor output file.

and I got the following message box - 4 or 5 files. (I answered "yes" every time).
What triggers this error (specifically)?


---------------------------
SlickEdit Pro
---------------------------
The regular expression stack is getting very large due to a complex search string.  You may not have enough memory to complete the search.

Continue?
---------------------------
Cancel   &Yes   &No   
---------------------------


Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 4174
  • Hero Points: 300
Re: RegEx Complexity
« Reply #1 on: June 11, 2015, 03:25:20 am »
I would think you would only get this if there were a ton of blank lines in a row.

We hope to replace the current regex engine with a more powerful engine (already written). Unfortunately, we need to rewrite the implementation of record file handling (a ton of work) before it can be plugged in. The new engine should be able to handle much much larger stacks.