It would've probably taken me ages to figure out that IE is actually stupid enough to mess with the innerHTML string. Insert newline before each line matching a pattern unless the previous line is already empty Do GUI based application execute shell commands in the background? Is IE doing something out of the norm? dl.dropboxusercontent.com/u/28836420/ie8.png –M Miller May 23 '13 at 18:42 @MMiller Why are you executing the regex on the original string twice? –Asad Saeeduddin May 23 '13 at 18:53 have a peek here
The solution, apparently, is to reset lastIndex to zero. Subscribed! How relevant is retina.js to my web projects? Someone else tested it in IE9 for me, and reported that it worked fine there - and I have tested in Chrome as well.
Thanks! –M Miller May 23 '13 at 20:59 | show 1 more comment up vote 2 down vote Apparently, when you call (RegExp object).match(string), it increments a property of the RegExp GO OUT AND VOTE What's the meaning of 'Cronenbourg' in the Rick and Morty episode Rick Potion No. 9? Right now I fixed that by checking whether the index in question converts cleanly into an integer, but a normal for statement might be a more readable solution. Not the answer you're looking for?
Could we parallax measure stars just based on the Earth's size? You own me. Where is this building on a mountain in Planet Earth 2? The next regular expression solves it.
Cannot insert the value NULL into column Insert newline before each line matching a pattern unless the previous line is already empty Overlaying two images Put two commands after an || But I am getting the value returned by the server in an ajax call and there seems to be the issue. Coworker throwing cigarettes out of a car, I criticized it and now HR is involved The Art of Word Shaping Texas, USA speed ticket as a European citizen, already left the I've code which works fine in firefox and chrome, but IE(8) doesn't match the regex somehow. Regex Tester
Coworker throwing cigarettes out of a car, I criticized it and now HR is involved How to complete function which is not defined for all interval Why didn't "spiel" get an You may have to register before you can post: click the register link above to proceed. Can Newton's laws of motion be proved (mathematically or analytically) or are they just axioms? Learning resources Microsoft Virtual Academy Channel 9 MSDN Magazine Community Forums Blogs Codeplex Support Self support Programs BizSpark (for startups) Microsoft Imagine (for students) United States (English) Newsletter Privacy & cookies
Storing passwords in access-restricted Google spreadsheets? required for an XML doc. –M Miller May 23 '13 at 23:24 add a comment| 2 Answers 2 active oldest votes up vote 5 down vote accepted You should either pass I've split this into many lines to try and isolate the error.
Put two commands after an || Ultrasonic Sensors and Pets How big can the input to Pythons input() function be? Why do governments not execute or otherwise permanently contain super villains? How to improve player engagement in video call for virtual tabletop game? So, using eval() to make an expression does work and wasn't really the problem: demo here http://jsfiddle.net/zluiten/79rhW/ share|improve this answer answered Jul 3 '14 at 9:37 netiul 2,04411226 add a comment|
What does this joke between Dean Martin and Frank Sinatra mean? I use JQuery –Sergio del Amo Aug 6 '09 at 9:35 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign I guess I just couldn't believe MS had missed including the most obvious character in that class :) Thanks for clearing it up for me though! –Joe Dyndale Feb 27 '13 SitePoint Sponsor User Tag List Results 1 to 2 of 2 Thread: Regular Expression test works in FF not in IE 7 Thread Tools Show Printable Version Subscribe to this Thread…
Example to use is Leave1234 or any password that has 1 number, 1 upper, 1 lower and atelast 8 chars. Reply With Quote 02-16-2009,07:09 AM #5 jannuhat View Profile View Forum Posts Registered User Join Date Feb 2009 Posts 5 You didn't notice the ""+, which changes the variable type into