Remove periods and replace with space with RegEx

A swapping-ground for Regular Expression syntax

Remove periods and replace with space with RegEx

Postby intwtl » Tue Apr 24, 2018 2:46 am

Hello,

I have 3 operations I want to complete with BRU at one time, they are:

Replace E with x
Remove the letter and number "S0"
Replace all periods with a space.

For the replace E with x I have used the Replace box with the Match case checked. Works fine.

For the remove S0 I have used the Remove box and entered S0 in the Words box. Works fine.

I have no knowledge of using Regular Expresson.

How can I use the RegEx box option to remove all periods and replace them with a space ?

Any assistance is greatly appreciated.

Thank you
intwtl
 
Posts: 4
Joined: Sun Apr 22, 2018 2:55 am

Re: Remove periods and replace with space with RegEx

Postby therube » Mon May 07, 2018 4:35 pm

at one time

If you don't need "exactly", at one time, BRU does not clear the file list, so you could run your two simultaneous changes, then go back & change, say the replace to pick up the third.

You might be able to use RegEx to accomplish the third (along with the other two that you already have), but I'm not sure how to do that, offhand?


(IMO, you should have bumped this thread rather then start another.)
therube
 
Posts: 1314
Joined: Mon Jan 18, 2016 6:23 pm


Return to Regular Expressions