Manning's Countdown to 2014
. Use discount code crdotd14 all month for 50% off every deal.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Java in General
Building this regular expression with replaceAll
Joined: Sep 22, 2003
Jun 30, 2005 01:04:00
I'm having problems in building a regular expression
that transforms negative numbers.
I need to put a single quote around negative numbers.
formula = "SWITCH: case 1: method1() case -1: exit()";
"SWITCH: case 1: method1() case '-1': exit()";
Does anybody know how to obtain it with replaceAll() ?
Thanks a lot
JBoss AS 5 Development
Joined: May 06, 2004
Jun 30, 2005 01:28:00
I already answered this question over at the Java Forums.
subject: Building this regular expression with replaceAll
remove "." from string
Counting words in a String
how to check whether BigDecimal or String is whole number or not ?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013