Unfortunately, I never really took the time to learn regex. So, I need some help for my plugin.
I have a string that I know exists in a file. I need a regular expression that returns the word preceding my string. Anyone have a suggestion?
([\w]+)(?=(?![\n\r]+)\s*somestring)Users browsing this forum: No registered users and 6 guests