Author Topic: Escape Special Characters for regex in Find dialog not working?  (Read 289 times)

rowbearto

  • Senior Community Member
  • Posts: 2162
  • Hero Points: 132
Escape Special Characters for regex in Find dialog not working?
« on: December 07, 2021, 05:27:07 pm »
In the BigFind dialog, if I check the box to use Perl regular expressions and I put an entry into the "Search for" that has special characters for a regex (such as /), then when I do "Escape Special Characters" they are not getting escaped.

I'm using 26.0.0.6 linux 64, using Clark's build from here: https://community.slickedit.com/index.php/topic,18611.msg73734.html#msg73734

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6273
  • Hero Points: 484
Re: Escape Special Characters for regex in Find dialog not working?
« Reply #1 on: December 07, 2021, 06:05:44 pm »
Forward slash doesn't need to be escaped. Are there some other regex special characters there?

rowbearto

  • Senior Community Member
  • Posts: 2162
  • Hero Points: 132
Re: Escape Special Characters for regex in Find dialog not working?
« Reply #2 on: December 07, 2021, 06:27:06 pm »
Ah yes you are right, / doesn't need to be escaped. I was trying to use it for escaping something to go into a sed command line, but that isn't appropriate here.

I tried + and . and SE does indeed escape those.