I want to remove the first match by using "Text Manupulation -> Replace All" function. Is it possible?

haydar

New member
I want to remove the first match by using "Text Manupulation -> Replace All" function. Is it possible?
 

haydar

New member
Sample Code: <a>good</a> deneme yazi deneme<a>good</a> denedim deniyorum <a>good</a>

I want to remove first "good". not the others. Leaving 'new text' blank removes all "good"s.

This I want to get: <a></a> deneme yazi deneme<a>good</a> denedim deniyorum <a>good</a>
 

Dm114

Well-known member
Sample Code: <a>good</a> deneme yazi deneme<a>good</a> denedim deniyorum <a>good</a>

I want to remove first "good". not the others. Leaving 'new text' blank removes all "good"s.

This I want to get: <a></a> deneme yazi deneme<a>good</a> denedim deniyorum <a>good</a>
As @Jacob L suggested, leave 'New text' empty and use good or <a>good</a> as regex expression.
 

Abalsam

Active member
Do you have the exact same string multiple times or do you have multiple strings that can match the same search parameters? If it is the exact same string it is much harder but in theory can be done with string length. If it is similar, then you can replace the first string only.... (if you can give me a sample string I can give you code that can work).

Thanks
 
Top