简体   繁体   中英

regarding asp.net regular expression

i have a textbox and i am using a regular expression in asp.net and i want my user to enter in this format cat10 as cat followed by numbers so what should be my regular expression

You can use the following:

cat\d+

Where the literal cat is followed by one or more numerals.

A good resource for regular expressions is http://regular-expressions.info

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM