R
Rainer Collet
hi!
i need a regex that matches all link-texts in html that are longer
than 17 characters. i started with
/<a.*?href=.*?>[^<\/a>]{18,}<\/a>/i
but the negated char-class [^<\/a>] is wrong, because if there is any
of the characters of the class in the link-text is does not match. so
it must be replaced by an expression that means: match 17 chars or
more, if there is no "</a>" included in them.
has anybody an idea?
- rainer
i need a regex that matches all link-texts in html that are longer
than 17 characters. i started with
/<a.*?href=.*?>[^<\/a>]{18,}<\/a>/i
but the negated char-class [^<\/a>] is wrong, because if there is any
of the characters of the class in the link-text is does not match. so
it must be replaced by an expression that means: match 17 chars or
more, if there is no "</a>" included in them.
has anybody an idea?
- rainer