duckyflip
duckyflip

Reputation: 16499

Making sure a url parameter is not present, using regex

I need 2 regular expressions that I will use in MySQL

This functionality is part of a bigger problem that does need to be implemented with regular expressions and they have to be compatible with MySQLs RLIKE

Upvotes: 0

Views: 192

Answers (2)

Bart Kiers
Bart Kiers

Reputation: 170227

AFAIK, MySQL's regex library does not support look-aheads, which is necessary for this kind of thing. As already stated, NOT RLIKE seems to be the only option.

Upvotes: 1

Igor Serebryany
Igor Serebryany

Reputation: 3341

your regexp looks fine - just use NOT RLIKE

Upvotes: 1

Related Questions