Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in ASP Classic only
Search
Advanced Search
Forums
BYTES
Product Launch
Updates
Developer Toolkit
Today's Posts
Member List
Calendar
Home
Forum
Topic
ASP Classic
"[^0-9a-zA-Z\s]" add roman nos. I to V and ' in it
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
kkshansid
New Member
Join Date:
Oct 2008
Posts:
232
#1
"[^0-9a-zA-Z\s]" add roman nos. I to V and ' in it
Apr 22 '09, 05:08 AM
"[^0-9a-zA-Z\s]" . this is my regular expression pattern to clean user input
i want to add roman nos. I to V and ' in it kindly help me where to put these
Frinavale
Recognized Expert
Expert
Join Date:
Oct 2006
Posts:
9749
#2
Apr 22 '09, 01:11 PM
Your current regular expression matches anything that is not a number, not a character, and not whitespace.
Consider changing it so that it matches anything that is not a number, not a character unless it's one between I and V, and not whitespace.
Something like:
[^0-9a-hw-z\s]
Regular expressions are as easy as breaking it down into what you want.
You can test your logic on sites like
this one
.
-Frinny
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment