Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is there a Integer only character in xml

Status
Not open for further replies.

evergrean100

Technical User
Joined
Dec 1, 2006
Messages
115
Location
US
The asterick in xml stands for all characters wildcard I assume?

What is the character for Integers only.

I have this setup in my xml for a Web page and was hoping to find out what to use for Integer only.

<servlet-mapping>
<servlet-name>Pager</servlet-name>
<url-pattern>/beans/page/*</url-pattern>
</servlet-mapping>
 
>The asterick in xml stands for all characters wildcard I assume?
Not so. If you have in mind path search, for instance, dos internal command dir take * as a wild card; for sql, it may mean to select all the fields (select * ...); in regular expression, it means any number of matches and dot (.) takes on more similarity as a wildcard! Hence, * may mean anything your application would like to see it.

><url-pattern>/beans/page/*</url-pattern>
If you have in mind to put a regular expression pattern as the data, it is more likely this: * will mean zero or more match of wildcard character (.).
[tt]<url-pattern>/beans/page/[red].[/red]*</url-pattern>[/tt]

>...was hoping to find out what to use for Integer only.
And, in that sense, if you restrict it to integer, this would be a step closer to your need.
[tt]<url-pattern>/beans/page/[red]\d[/red]*</url-pattern>[/tt]

All these only mean you've to get the concept right.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top