SlickEdit Community
SlickEdit Product Discussion => SlickEdit® => Topic started by: outsider on September 10, 2011, 07:07:37 PM
-
Hi guys,
I can't find it if it exists, but is there a SlickEdit function for searching for a substring within a string (preferably one with regex)? All the functions I've found so far regarding search pertain to the whole of the current or named buffers, either explicitly or implicitly.
thanks
-
You can search within a selection. So, unless I misunderstand your question, just select the string within which you wish to search, Ctrl-F, enter your desired search regex and you get what you want.
Since you use the word "function", perhaps you are looking for a way to do this in a Slick-C macro? In which case you should post this question in the Slick-C macro programming forum.
Good Luck
-
Yes LBCEi, I'm looking for a Slick-C function which will accept the string to search as an argument. Don't know how to move the post so maybe I'll repost there.
Thanks for responding.
-
Try the pos function.
-
Try the pos function.
Perfect! Thanks once again Graeme.