A
Alberto Sartori
Hello,
I have a html text with custom tags which looks like html comment,
such:
"text text text <p>text</p> text test test
text text text <p>text</p> text test test
<!-- @MyTag@ -->extract this<!-- /@MyTag@ -->
text text text <p>text</p> text test test
<!-- @MyTag@ -->and this<!-- /@MyTag@ -->
text text text <p>text</p> text test test"
My regexp should extract the first part of text till first opening tag
(<!-- @MyTag@ -->), then the text between tags (extract this, and
this). I had headache by finding the right pattern. Any help? thanks!
Alberto
I have a html text with custom tags which looks like html comment,
such:
"text text text <p>text</p> text test test
text text text <p>text</p> text test test
<!-- @MyTag@ -->extract this<!-- /@MyTag@ -->
text text text <p>text</p> text test test
<!-- @MyTag@ -->and this<!-- /@MyTag@ -->
text text text <p>text</p> text test test"
My regexp should extract the first part of text till first opening tag
(<!-- @MyTag@ -->), then the text between tags (extract this, and
this). I had headache by finding the right pattern. Any help? thanks!
Alberto