Regex to search for words

Asked

Viewed 278 times

0

How to create a REGEX to search for a word in a string taking into account accented and/or upper case words.

A search similar to Ctrl+f

  • What words are?

  • The word comes from a parameter. Let’s take for example the question. Let’s look for the word "consideration" (this, without accent).

  • Why not use a specific language to remove these accents and regex to search for the already clean word? What language do you use? So we can suggest libs for this cleansing..

  • I cannot remove all accents in the text as the text will be displayed to the user

  • Would not remove.. would be given a clean.. processed, found the values , done the match and return the original value..

  • In my case does not answer. I will have to highlight the word found in the text. For example: "How to create a REGEX to search for a word in a string taking in consideration words with accents and/or upper case."

Show 2 more comments
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.