Monday, June 3, 2024
 Popular · Latest · Hot · Upcoming
123
rated 0 times [  128] [ 5]  / answers: 1 / hits: 25695  / 14 Years ago, sun, april 25, 2010, 12:00:00

How would I make a regular expression to match the character < not followed by (a or em or strong)



So <hello and <string would match, but <strong wouldn't.


More From » regex

 Answers
63

Try this:



<(?!a|em|strong)

[#96981] Wednesday, April 21, 2010, 14 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
billt

Total Points: 608
Total Questions: 100
Total Answers: 87

Location: Cape Verde
Member since Fri, Nov 27, 2020
4 Years ago
billt questions
Fri, Sep 10, 21, 00:00, 3 Years ago
Tue, Aug 18, 20, 00:00, 4 Years ago
Sat, Apr 6, 19, 00:00, 5 Years ago
;