Hello, all, hope you're settling down for a great Thanksgiving if you're in the U.S.
I've got a question. I needed to search a text file with grep [RegEx] and determine if text (a full length URL that was being reduced with a bit.ly API, and stored in the file) was already stored or not. I have been using this search to do this:
The search code is (?mi)^%Variable%Local_TextToFindEscaped%.*$
I recently realized it was giving errors, because it would return, say, https://website.com/bestsellers/
when the actual line I need to find is https://website.com/bestsellers/someotherinfo
.
If I can change the grep search so that there's a hard space inside the search (indicating the break between the URL and the shortened URL), it will work, but playing around with the grep code, I can't figure out how to force it to search for "[whateevr] " with a space after the code.
Can anyone help me out?