D
D
Dima2021-01-06 18:08:23
Java
Dima, 2021-01-06 18:08:23

How to find the same word but with different spelling style?

There is a program name TrestG3.exe, but sometimes there are names TRESTG3.exe, trestG3.exe. How to find the name using a regular expression, regardless of the style of writing? I tried ([AZ]*[az]*3?).exe but some variants are not recognized.
The program in which I want to use the search works on Java.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DevMan, 2021-01-06
@NekOdin

depends on the engine. pcre, for example, has an i flag .
but in general you have some kind of game, not regexp.
pcre: /(\w+)\.exe/i
java: (?i)(\w+)\.exe
https://extendsclass.com/regex/df752e0

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question