Click here to Skip to main content
15,867,330 members
Home / Discussions / JavaScript
   

JavaScript

 
GeneralRe: Getting a textbox in another frame Pin
jkirkerx19-Oct-20 10:12
professionaljkirkerx19-Oct-20 10:12 
QuestionVirtual populate in JS Pin
adids122123-Sep-20 1:38
adids122123-Sep-20 1:38 
QuestionSetting max length property of masked input control in ember js Pin
simpledeveloper22-Sep-20 5:45
simpledeveloper22-Sep-20 5:45 
AnswerRe: Setting max length property of masked input control in ember js Pin
ZurdoDev22-Sep-20 6:07
professionalZurdoDev22-Sep-20 6:07 
QuestionNeed to mask Alphanumeric values with some special characters allowed Pin
simpledeveloper9-Sep-20 10:02
simpledeveloper9-Sep-20 10:02 
AnswerRe: Need to mask Alphanumeric values with some special characters allowed Pin
W Balboos, GHB11-Sep-20 8:59
W Balboos, GHB11-Sep-20 8:59 
GeneralRe: Need to mask Alphanumeric values with some special characters allowed Pin
simpledeveloper21-Sep-20 8:14
simpledeveloper21-Sep-20 8:14 
GeneralRe: Need to mask Alphanumeric values with some special characters allowed Pin
W Balboos, GHB21-Sep-20 9:07
W Balboos, GHB21-Sep-20 9:07 
OK - lets go about this analytically:


It works for A-Za-z0-9
Now add just one of your special characters at a time and see which, if any work - or what we're really looking for - is which one is breaking your string.

Note, also, that shortcuts exist for standard numeric and alpha ranges:

[^] And, if I read it correctly, '\w' is the equivalent of '0-9A-Za-z' and the do mention the hyphen character, as well.
  • \d – is the same as [0-9]
  • \w – is the same as [a-zA-Z0-9_],
  • \s – is the same as [\t\n\v\f\r ], plus few other rare unicode space characters.

Comes from that page.

Find out the character that's killing you. It will help you remember three things (1) how to hunt for the problem (2) when you find the bad actor(s), why they're bad, (3) burn it into your mind so it is not only remembered but parallel problems are identified in advance.


Ravings en masse^
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein
"If you are searching for perfection in others, then you seek disappointment. If you seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010

GeneralRe: Need to mask Alphanumeric values with some special characters allowed Pin
simpledeveloper21-Sep-20 9:28
simpledeveloper21-Sep-20 9:28 
GeneralRe: Need to mask Alphanumeric values with some special characters allowed Pin
W Balboos, GHB22-Sep-20 2:27
W Balboos, GHB22-Sep-20 2:27 
GeneralRe: Need to mask Alphanumeric values with some special characters allowed Pin
simpledeveloper22-Sep-20 5:47
simpledeveloper22-Sep-20 5:47 
GeneralRe: Need to mask Alphanumeric values with some special characters allowed Pin
W Balboos, GHB22-Sep-20 5:53
W Balboos, GHB22-Sep-20 5:53 
GeneralPixelated in javascript Pin
Hasan Moussawi8-Sep-20 20:52
Hasan Moussawi8-Sep-20 20:52 
QuestionI have HTML and jQuery as below, I want to convert that into EmberJS Pin
simpledeveloper8-Sep-20 9:44
simpledeveloper8-Sep-20 9:44 
SuggestionRe: I have HTML and jQuery as below, I want to convert that into EmberJS Pin
ZurdoDev9-Sep-20 10:36
professionalZurdoDev9-Sep-20 10:36 
GeneralRe: I have HTML and jQuery as below, I want to convert that into EmberJS Pin
simpledeveloper9-Sep-20 11:47
simpledeveloper9-Sep-20 11:47 
QuestionFilter the JSON object Pin
kasimmohamed5-Sep-20 5:11
kasimmohamed5-Sep-20 5:11 
QuestionHow to redirect in IE 11 Pin
huhuhhuhuh2-Sep-20 1:13
huhuhhuhuh2-Sep-20 1:13 
AnswerRe: How to redirect in IE 11 Pin
Richard Deeming2-Sep-20 2:52
mveRichard Deeming2-Sep-20 2:52 
AnswerRe: How to redirect in IE 11 Pin
huhuhhuhuh3-Sep-20 6:13
huhuhhuhuh3-Sep-20 6:13 
AnswerRe: How to redirect in IE 11 Pin
huhuhhuhuh4-Sep-20 2:33
huhuhhuhuh4-Sep-20 2:33 
AnswerRe: How to redirect in IE 11 Pin
Richard Deeming4-Sep-20 3:15
mveRichard Deeming4-Sep-20 3:15 
Questionwindow.open new window not showing up Pin
Member 1492460727-Aug-20 7:21
Member 1492460727-Aug-20 7:21 
AnswerRe: window.open new window not showing up Pin
Richard MacCutchan27-Aug-20 22:35
mveRichard MacCutchan27-Aug-20 22:35 
GeneralRe: window.open new window not showing up Pin
Member 1492460728-Aug-20 6:00
Member 1492460728-Aug-20 6:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.