split string (with escaped char) using regexp
Hi,
I would split the following string using ; as delimitator but pay attention to \;
String n = N:name\; surname;middlename
I would have as result
values[0] = name\; surname
values[1] = middlename
In fact, if into string there is an escaped ; this char must not consider a delimitator.
If I write
Pattern p = Pattern.compile("[^(\\\\)];");
String values[] = p.split(n);
I've a wrong result
values[0] = name\; surnam<-- there is not the last char
values[1] = middlename
How can I write the regexp into split?
Thanks,
Luigia

