Looking to isolate and replace a single repeated character

A swapping-ground for Regular Expression syntax

Looking to isolate and replace a single repeated character

Postby IntegraCSM » Wed Dec 13, 2017 3:52 pm

I am needing to only eliminate the first underscore of each filename and replace it with a space. File names are of a variety in lengths but standard in the field breaks.
>
> Example names:
> 0000_0000_1661080_0000_0000.TIF
> AADEN_HANSEN_2857178_255215896_06-06-2010.tif
IntegraCSM
 
Posts: 2
Joined: Wed Dec 13, 2017 3:50 pm

Re: Looking to isolate and replace a single repeated character

Postby therube » Wed Dec 13, 2017 4:57 pm

1:RegEx
Code: Select all
Match:  (.*?)_(.*)
Replace:  \1 \2
therube
 
Posts: 1314
Joined: Mon Jan 18, 2016 6:23 pm

Re: Looking to isolate and replace a single repeated character

Postby IntegraCSM » Wed Dec 13, 2017 6:48 pm

@therube

Thank you very much it is appreciated.
IntegraCSM
 
Posts: 2
Joined: Wed Dec 13, 2017 3:50 pm


Return to Regular Expressions


cron