Adri HM
Adri HM

Reputation: 3070

Regex match with accent in text and not in query

I'm looking for a regex that match the keyword pepe in the string Pépé Dominguez

enter image description here

I don't want to sanitize the Pépé dominguez string before test.

Upvotes: 0

Views: 53

Answers (1)

Jesper
Jesper

Reputation: 1086

If you only need to match Pepe or Pépé, i would just do this:

/pépé|pepe/gi

Simple, but it works.

Upvotes: 1

Related Questions