Re: Regular Expression reserved letters



On Apr 30, 7:35 am, Daniel Pitts <googlegrou...@xxxxxxxxxxxxx> wrote:
On Apr 30, 7:18 am, adria...@xxxxxx wrote:
Hi all

I have the following problem.

I have to test if a text matches with another text. For this i use the
matches-Method of the String class in the way:

String a = "Hello world";
String b = "anytext goes here_-)_some m[]ore text goes{}here.";

if (a.tolowercase().matches(b)) {
// some code goes here

}
Oops, I should have suggested using:
if (a.equalsIgnoreCase(b)) {
}

Hope this helps too,
Danie.

.