P
pbreah
I made a pattern to exclude HTML tags and text within the opening
brace '{' and the closing brace '}' and match all the rest.
Here is the pattern:
((?![^<]+>)|(?=[{]}))(?![^&]+" + letterVar + "(?![^&]+(?![^<]+
[>}]
// This is inside a for loop, updating letterVar from A to Z
Problem #1: Let say I have the following text:
<pre>
is this ok?
{On Tue, 24 Apr 2007 16:47:31 -0500}
But when I run this pattern it doesn't match the text "is this ok?" I
want to correct this pattern to include this text. The whole idea is
that the pattern has to match any letter not inside any HTML tag, not
any letter from HTML entities, and match any letter outside of these
two cases.
Any help is appreciated,
Thank you
brace '{' and the closing brace '}' and match all the rest.
Here is the pattern:
((?![^<]+>)|(?=[{]}))(?![^&]+" + letterVar + "(?![^&]+(?![^<]+
[>}]
// This is inside a for loop, updating letterVar from A to Z
Problem #1: Let say I have the following text:
<pre>
is this ok?
{On Tue, 24 Apr 2007 16:47:31 -0500}
</pre>{ said:█████ ████ ██ █ ████
But when I run this pattern it doesn't match the text "is this ok?" I
want to correct this pattern to include this text. The whole idea is
that the pattern has to match any letter not inside any HTML tag, not
any letter from HTML entities, and match any letter outside of these
two cases.
Any help is appreciated,
Thank you