D
D
DmitryPros2017-08-20 04:18:41
Java
DmitryPros, 2017-08-20 04:18:41

Why doesn't a simple regular expression work?

There is a regular expression: " (?i)(c) "
The input is the string: "B to cc"
The output is: "B"
Method: What could be the problem? Why does disabling case sensitivity not work? In Notepad++ this regular expression works fine.
string = string.replaceAll("(?i)(в)", "");

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question