Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Java (http://www.velocityreviews.com/forums/f30-java.html)
-   -   split (http://www.velocityreviews.com/forums/t390728-split.html)

shadykazan@gmail.com 02-09-2007 08:32 AM

split
 
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
characters,
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 11:41 AM.

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


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57