Please, I hope someone could help me to solve this, I searched all over and I can't figure out how to do it.
I have a text with many paragraphs started with <P> tags on it and I need to replace then to <P class=X>, where X has to be increased from 0, like <P class=0>, <P class=1>, <P class=2>, and so on until the last <P> tag.
I tried many solutions and I just got replaced the <P> tags for <P class=0>, <P class=0>, <P class=0>.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.
Find, replace and increase
in Regex Help
Posted
Good morning all,
Please, I hope someone could help me to solve this, I searched all over and I can't figure out how to do it.
I have a text with many paragraphs started with <P> tags on it and I need to replace then to <P class=X>, where X has to be increased from 0, like <P class=0>, <P class=1>, <P class=2>, and so on until the last <P> tag.
I tried many solutions and I just got replaced the <P> tags for <P class=0>, <P class=0>, <P class=0>.
Really thankx.
Danilo Jr.