Find text chunk with tags, tabs, line endings- use wildcard?
Posted: Wed Oct 15, 2008 12:52 pm
I am working in a VBScript / JavaScript ECMA-262 regular expression environment:
I have something like:
or:
and I want to do this:
FIND:
REPLACE WITH:
I thought would work but it doesn't. I am stumped; \s seems to maybe be involved to account for various \t \r and \n characters but I still can't get a wildcard to capture all the other stuff.
I have something like:
Code: Select all
<attr>
<attrlabl>SUBBASIN</attrlabl>
</attr>
Code: Select all
<attr>
<attrlabl>SUBBASIN</attrlabl>
<attrdef>XYZPDQ</attrdef><attrdefs>ABCDEFG</attrdefs></attr>and I want to do this:
FIND:
Code: Select all
<attr> ---ANYTHING--- <attrlabl>SUBBASIN</attrlabl> ---ANYTHING--- </attr>Code: Select all
<attr> <attrlabl>SUBBASIN</attrlabl> <newtag>Other Stuff</newtag> <anothertag>More stuff</anothertag> </attr>
Code: Select all
<attr>*<attrlabl>SUBBASIN</attrlabl>*</attr>