Copy the text behind the parentheses and paste it into the double quotes
-
I would like to know the expression to perform this action for a 900+ lines.
Before:
ACACIA_BOAT(""); ACACIA_BUTTON(""); ACACIA_DOOR("");After:
ACACIA_BOAT("ACACIA_BOAT"); ACACIA_BUTTON("ACACIA_BUTTON"); ACACIA_DOOR("ACACIA_DOOR");Basically, what I want to achieve is to have the text before the parentheses copied and placed where the quotes are. As the example above.
-
@David-Alexandru said in Copy the text behind the parentheses and paste it into the double quotes:
Something like this would do it if your real data is like you posted.
find what:(\w+)\(""\);
replace with:\1\("\1"\);
check regular expression in search mode -
@Ekopalypse It worked! Thank you a lot!
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