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 Javascript only
Search
Advanced Search
Forums
Product Launch
Updates
Today's Posts
Member List
Calendar
Home
Forum
Topic
Javascript
Regular Expression
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
veenna
New Member
Join Date:
Dec 2007
Posts:
65
#1
Regular Expression
May 6 '10, 10:05 AM
Hi all,
Can anyone please tell the meaning of the regular expression
Code:
[\w{1,32}]
Regards
Veena
acoder
Recognized Expert
MVP
Join Date:
Nov 2006
Posts:
16032
#2
May 6 '10, 11:17 AM
\w matches word characters (letters, numbers and underscore)
{1,32} means 1-32 characters
See
http://www.regular-expressions.info/
for next time.
Comment
Post
Cancel
veenna
New Member
Join Date:
Dec 2007
Posts:
65
#3
May 6 '10, 11:22 AM
Originally posted by
acoder
\w matches word characters (letters, numbers and underscore)
{1,32} means 1-32 characters
See
http://www.regular-expressions.info/
for next time.
thanks for the reply.
it is allowing more than 32 characters.
tested from the link :
404 - Page Not Found | Northern Virginia Community College
http://www.nvcc.edu/home/drodgers/ceu/resources/test_regexp.asp
any idea on this??
thanks
veena
Comment
Post
Cancel
acoder
Recognized Expert
MVP
Join Date:
Nov 2006
Posts:
16032
#4
May 6 '10, 11:38 AM
You need to add the start and end modifiers: ^ and $ respectively.
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment