File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
XML and Related Technologies
How to check if a string as numbers in XSLT
Joined: Jan 08, 2008
Feb 26, 2008 01:47:00
Can you please let me know the function name and usage to find if a given
has numbers in it... like
"app3le" has 3 in it..
I have found one function in w3schools website:
which returns true if string1 contains string2, otherwise it returns false
but using this function and looping it 10 times (i.e., from 0-9) is bit tedious.
Can you suggest some other way...
Thanks in advance
***<br />K Vinod Reddy
Joined: Mar 04, 2005
Feb 28, 2008 04:26:00
XSLT 2.0 support regular expression.
Regard these links:
the good publication
the chapter from zvon.org tutorial
the official xslt 2.0 specification (very long html document)-chapter 15 is about regexps
The zvon.org can be usable as a xslt reference (elements, functions etc)
[ February 28, 2008: Message edited by: Pavel Cherkashin ]
Pavel Cherkashin - <br />SCJP, SCWCD, SCDJWS, SCBCD, SCEA, ...<br />www.linkedin.com/in/pcherkas
I agree. Here's the link:
subject: How to check if a string as numbers in XSLT
Checking whether a string is a substring of another string without using indexOf method
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015