Link to home
Create AccountLog in
Avatar of Joseph Luppens
Joseph LuppensFlag for United States of America

asked on

Wildcard Pattern Replace

I have a text file which contains a repeating (unique) Order # string, which I would like to replace with a space at the end for each occurrence. The Order # string always has the xxx-xxxxxxx-xxxxxxx pattern.

For example:

Before:
113-5040923-6151434OCuSOFT Retaine Flax Omega 3 and Omega 6...
113.22112-4637876-7960258 Akorn Sodium Chloride 5% Ophthalmic Oint...
 
 After:
113-5040923-6151434 OCuSOFT Retaine Flax Omega 3 and Omega 6...
113-22112-4637876-7960258 Akorn Sodium Chloride 5% Ophthalmic Oint...

Is there a way to do this within Notepad++ or UltraEdit?


Avatar of Andrew Porter
Andrew Porter
Flag of United States of America image

In Notepad ++ you can simply do a find and replace.

From Notepad++
1. Press CTRL + F
2. Click the replace tab
3. Enter your search string
4. Enter your replacement string
5. Press Enter

ASKER CERTIFIED SOLUTION
Avatar of NVIT
NVIT
Flag of United States of America image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of Joseph Luppens

ASKER

Hello NVIT,

Your solution worked perfectly, thank you!
You're welcome. Glad to help. Aloha!