REGEXP needed

admin

Administrator
Staff member
I need to find strings that contain a substring but at least one instance must not be between brackets <...>

The regexp(mySQL query) should produce the following results:

Search for: "font"
In String: "sdf sdf font sdf <font>"
Would Result: FOUND, because "font" exists outside of <...>

Search for: "size"
In String: "sdf sdf size sdf <font size=2>"
Would Result: FOUND, same reason as above

Search for: "size"
In String: "sdf sdf <font size=2>"
Would Result: NOT FOUND, because "size" does not exist at least once outside of brackets <...>

Thanks,
Dan
 
Back
Top