Author Topic: RegEx Complexity  (Read 956 times)


  • Senior Community Member
  • Posts: 1710
  • Hero Points: 166
  • 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.

Cancel   &Yes   &No   


  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 4618
  • Hero Points: 368
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.