I have a STRING
"wordride plain fire "
I have tried to replace with Regular Expressions:
- Find what:
(?>(word)|\G(?<!^))\K\S
- Replace with:
$1$2$0
In Notepad ++, it does not change the text but it works in regex101 (https://regex101.com/r/aI6gE1/2), where i replaces characters after word
as follows
- First replace:
wordwordide plain fire
- Second replace:
wordwordwordde plain fire
- Third replace:
wordwordwordworde plain fire
- Fourth replace:
wordwordwordwordword plain fire
- Fifth replace:
wordwordwordwordwordwordplain fire
- Sixth replace:
wordwordwordwordwordwordwordlain fire
Can you help me to see the error or give me a workaround in Notepad ++ for this purpose: replacing string after "word" character by character using a group not included in match group
Please help me