E
Evgeny Zoldin
Hi ALL.
I would like to strip out all comments from some HTML source code. E.g.,
html = "__block 1__<!--....-->__block 2__<!--...-->__block 3__"
then call
Regex.Replace(sString, "<!--[^>]*-->", "") returns
"__block 1__block 3__"
, but I want to receive
"__block 1____block 2____block 3__"
Surely, it's can be realized with string operations, but is it possible to
do it by the Regexp?
More commonly, in Regex language we can use that construction: [^(class of
symbols)], that means "match any 1 symbol excluding any of (class of
symbols)". How can man define the following "match any symbol-sequence that
differs from the given (string-longer-then-1-symbol)"??
Thanks
I would like to strip out all comments from some HTML source code. E.g.,
html = "__block 1__<!--....-->__block 2__<!--...-->__block 3__"
then call
Regex.Replace(sString, "<!--[^>]*-->", "") returns
"__block 1__block 3__"
, but I want to receive
"__block 1____block 2____block 3__"
Surely, it's can be realized with string operations, but is it possible to
do it by the Regexp?
More commonly, in Regex language we can use that construction: [^(class of
symbols)], that means "match any 1 symbol excluding any of (class of
symbols)". How can man define the following "match any symbol-sequence that
differs from the given (string-longer-then-1-symbol)"??
Thanks