Velocity Reviews

Velocity Reviews (
-   Java (
-   -   split ( 02-09-2007 08:32 AM

hi im trying to split a string into an array using string.split
my delimiter is the null character '\u0000'
the problem is that when there are 2 or more consecutive null
they don't get split.
i have tried
data.replaceAll("\u0000{2}","\u0000 \u0000");
String [] array=data.split("\u0000");

but it did not work
im not so good at regular expressions

All times are GMT. The time now is 10:58 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.