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\)\s
If 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) request
I get this as a result:
You must open the door immediately.permissioncommandprohibitionrequest
I 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 request
But 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\)\s
I 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.