velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Clifton C. Craig" <...@icsaward.com>
Subject String Numerical Testing?
Date Mon, 08 Nov 2004 15:52:12 GMT
Hello all. I'm still green with Velocity. I'm wondering what's the 
easiest way to test a string for a numeric. For example, I have a string 
$myVal that can contain "foo", or "23.2", or "15". I want to 1st check 
if it is a numeric and then wrap it with quotes if it is not.

Clifton C. Craig, Software Engineer
Intelligent Computer Systems -  A Division of GBG
2101 Embassy Drive
Lancaster, PA  17603

Phone:  717-295-7977 ext. 621
Fax:  717-295-7683
ccc@icsaward.com
ccraig@gbg.com


---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org


Mime
View raw message