A
Adam Lipscombe
Folks
I need to split a String that is separated by "{".
e.g.:
"3835220{AP102 {4257570000429831{CLAIMANT B {08/09/2005{Books and Periodicals
{U{40 {WH SMITH CHESTER { 5994{ 30.94{ 0.94{826{GB"
If I use String.split("{") I get a PatternSyntaxException with a "illegal repetition" message.
I have tried escaping the "{" String to "\\{" and "\\\\{" but the results are the same.
I know "{" is a a meta-char, but sadly I have never really understood how the meta-char escape mech
works in the Java regex syntax....
How does one make the above work?
TIA - Adam
I need to split a String that is separated by "{".
e.g.:
"3835220{AP102 {4257570000429831{CLAIMANT B {08/09/2005{Books and Periodicals
{U{40 {WH SMITH CHESTER { 5994{ 30.94{ 0.94{826{GB"
If I use String.split("{") I get a PatternSyntaxException with a "illegal repetition" message.
I have tried escaping the "{" String to "\\{" and "\\\\{" but the results are the same.
I know "{" is a a meta-char, but sadly I have never really understood how the meta-char escape mech
works in the Java regex syntax....
How does one make the above work?
TIA - Adam