Delete multiple characters or words with "Find and Replace" at once
-
Hi,
I need help deleting the option characters of a question (a) , b) ,…) etc.
I have searched many forums but I couldnt find any help.
What I did was find "a) " replace with “empty”, then do the same for "b) ", and "c) "… later.
Is it possible to do delete all question options at once.
Following is the question.
You must open the door immediately.
a) permission
b) command
c) prohibition
d) request
What I want is- You must open the door immediately.
permission
command
prohibition
request
Thanks in advance…
- You must open the door immediately.
-
using regular expression and something like this
find what:\s*\w\)\sIf you want to find out more about regex, I recommend reading this.
Cheers
Claudia -
-
Hmmm…when I try @Claudia-Frank 's suggestion (with the implied Replace with of nothing ?) on this data:
You must open the door immediately. a) permission b) command c) prohibition d) requestI get this as a result:
You must open the door immediately.permissioncommandprohibitionrequestI thought the OP wanted this (ignoring the original
1.which isn’t [reasonably?] possible to do):You must open the door immediately. permission command prohibition requestBut apparently it worked for the OP so it’s all good!
:-D
-
:-D - that is true - looks like someone ate my start anchor
find what:^\s*\w\)\sI guess the OP was clever and solved my mistake.
Cheers
Claudia -
@Claudia-Frank , @Scott-Sumner
Actually I solved it by adding “\n” to “replace with” . -
@Scott-Sumner said:
You must open the door immediately.
permission
command
prohibition
requestand I got
You must open the door immediately.
permission
command
prohibition
request
which was what I wanted.
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