Find & Replace question with RegEx solution
-
I have a URL that is like so:
https://preview.redd.it/7zssyhn54gxa1.jpg?blah_blahI need the word ‘preview’ replaced with the letter i (lowercase I). And then everything after the ? replaced with nothing. Actually I need the question mark to be deleted as well.
This is the end result I need:
https://i.redd.it/7zssyhn54gxa1.jpgFixing just 1 URL like this would be very simple but I have multiple URLs with this pattern. They are all on separate lines. I’d appreciate any help I can get.
-
I did some googling and found a RegEx solution:
Find:
\?.*$
Replace with:
(null)