The Forum has been Updated
The code has been upgraded to the latest .NET core version. Please check instructions in the Community Announcements about migrating your account.
You know how wildcards are not allowed in the username such below?
* You may not use any of these chars in your username !#$%^&*()=+{}[]|\;:/?>,<'
Is there a regex expression that will do the same thing? The regex expressions I find still allow certain wildcards like #%+
* You may not use any of these chars in your username !#$%^&*()=+{}[]|\;:/?>,<'
Is there a regex expression that will do the same thing? The regex expressions I find still allow certain wildcards like #%+
نوشته شده در
what exactly did you want the regex to do ?
نوشته شده در
I'm trying to pre-filter member names using auto-complete with jQuery.
نوشته شده در
Well, I am having a little bit of trouble still finding the regex I would like to use.
I did find something that prevents characters from being entered which is actually better, but, alas, I don't know how it is done.
Would someone mind taking a look at the first text box on this page (http://www.ajaxcontroltoolkit.com/FilteredTextBox/FilteredTextBox.aspx) where it says Only digits are allowed here:? Try typing in anything other than a number, and you will see what I am talking about. The character is rejected and cleared before it is accepted. I'd like to do that with this combination:
alphanumeric space underscore
I did find something that prevents characters from being entered which is actually better, but, alas, I don't know how it is done.
Would someone mind taking a look at the first text box on this page (http://www.ajaxcontroltoolkit.com/FilteredTextBox/FilteredTextBox.aspx) where it says Only digits are allowed here:? Try typing in anything other than a number, and you will see what I am talking about. The character is rejected and cleared before it is accepted. I'd like to do that with this combination:
alphanumeric space underscore
نوشته شده در
I found this: http://javascript.internet.com/forms/val-num-or-char.html
Though it's not as clean as the one I was asking about, it will work for now.
Though it's not as clean as the one I was asking about, it will work for now.
آخرین ویرایش توسط
نوشته شده در
Well, that is interesting.
The link above is supposed to look something like this (the area in red should have been included in the link above):
http://javascript.internet.com/forms/val-num-or-char.html
The link above is supposed to look something like this (the area in red should have been included in the link above):
http://javascript.internet.com/forms/val-num-or-char.html
آخرین ویرایش توسط
نوشته شده در
OK, this works when posted directly:
http://javascript.internet.com/forms/val-num-or-char.html
And this does not work when posted using the [ url ] [ /url ] tags:
http://javascript.internet.com/forms/val-num-or-char.html
Rui? HuwR? Guys?
http://javascript.internet.com/forms/val-num-or-char.html
And this does not work when posted using the [ url ] [ /url ] tags:
http://javascript.internet.com/forms/val-num-or-char.html
Rui? HuwR? Guys?
آخرین ویرایش توسط
نوشته شده در
Originally posted by Etymon
OK, this works when posted directly:
http://javascript.internet.com/forms/val-num-or-char.html
And this does not work when posted using the [ url ] [ /url ] tags:
http://javascript.internet.com/forms/val-num-or-char.html
Rui? HuwR? Guys?
Go look at the bugs forum. I posted a fix to that last year.
نوشته شده در
some of the characters you are trying to reject won't work in a regex
as they are special control characters used by regex itself, which may be why you are having a problem.
the word javascript is being filtered out of the url by the forum code (this was deliberate)
the word javascript is being filtered out of the url by the forum code (this was deliberate)
نوشته شده در
Ah! Yes, the regex is interesting. I found a javascript to help out with that.
The link thing. I shoulda' looked before I leaked on that. Thanks Huw! Thanks Carefree!
The link thing. I shoulda' looked before I leaked on that. Thanks Huw! Thanks Carefree!
نوشته شده در
Remember, Javascript \s or \S might filter out non-English characters as well.
Email Member
Message Member
Post Moderation
بارگزاری فایل
If you're having problems uploading, try choosing a smaller image.
پیشنمایش مطلب
Send Topic
Loading...