How to remove text after specific characters from each line?
-
Hello!
I have a list of links that I need to trim. Basically I need to remove everything starting with ?__cft
I googled how to do that but it doesn’t seem to work.

-
?is a special character and so needs to be “escaped” so the regex machine takes it literally (treats it as a simple character).Start your expression with
\?instead. -
Hello, @Геннадий-Гайдукевич, @neil-shcipper and All,
In the Find What: field of your picture, we see that searched string :
?__cft-.*So, from your shown text, I suppose that the correct regex syntax is :
SEARCH
\?__cft__.*REPLACE
Leave EMPTYBest Regards
guy038
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login