dbomb101
dbomb101

Reputation: 423

regular expression question mark

I'm trying to construct a regular expression query which excludes "/php?/" from the results, but I'm not sure how to get question mark to be recognized as part of the string.

Upvotes: 1

Views: 2321

Answers (1)

Quentin
Quentin

Reputation: 943591

Use the escape character \

i.e. /php\?/

If you are constructing it as a string, you will have to escape the escape character for the string.

i.e. "/php\\?/"

Upvotes: 2

Related Questions