Remove everything between the first _ and last _

A swapping-ground for Regular Expression syntax

Remove everything between the first _ and last _

Postby niceguysurdo » Mon Jun 25, 2018 12:47 pm

Hi! Could somebody help?

From this: 600128_rosa_choque_vestido
To this: 600128_vestido

So, I need to remove everything between the first _ and last _
niceguysurdo
 
Posts: 1
Joined: Mon Jun 25, 2018 12:44 pm

Re: Remove everything between the first _ and last _

Postby therube » Fri Jun 29, 2018 2:15 am

See if this works:

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


Return to Regular Expressions