Issue with split(String regex) functin of java.lang.String class

HI,

I am using split(String regex) method of java.lang.String class. When I use | (pipe) as regex i.e. delimiter the split functin does not work properly. Is it a known bug? If it is any idea how to make it work. I know the workaround I am looking for original fix if it is a bug.

Saad

[305 byte] By [saadussalama] at [2007-10-3 4:52:45]
# 1
'|' is the OR command in regex so it needs escaping. Use "\\|".
sabre150a at 2007-7-14 22:57:34 > top of Java-index,Java Essentials,Java Programming...
# 2
Yup that works. Thanks for the quick response. I guess my knowledge of java is quite out dated :)
saadussalama at 2007-7-14 22:57:34 > top of Java-index,Java Essentials,Java Programming...