|
Sorry guys, I tried a Aussie Java Mailing list but got a
message back from the moderator basically saying my question was to silly for
them. So here goes in the hope someone here can answer this. I need to parse an integer out of string with a regEx. I tried: Pattern p =
Pattern.compile("([0-9]*)"); Matcher m = p.matcher("BDAT 24
LAST\nEND"); if (m.matches()) { byteToRead =
Integer.parseInt(m.group(1)); System.out.println("byteToRead =
" + byteToRead); } But it gives me nothing, even when I use “.” as
the regEx. ________________________________ Taco Fleur - E-commerce
Development Manager Shelco Searches & Services An Authorised ASIC Information Broker Ph: + 61 7 3236 2605 You are currently subscribed to cfaussie as: [email protected] To unsubscribe send a blank email to [EMAIL PROTECTED] Aussie Macromedia Developers: http://lists.daemon.com.au/ |
