Posts that RunningBlind is monitoring

Subscribe to Posts that RunningBlind is monitoring 3 posts found

Feb 19, 2008
znerp 423 posts

Topic: Replace Function & Regular Expressions

Oh yeah, my bad. Got a bit overzealous with removing some of your plusses.

 
Feb 18, 2008
znerp 423 posts

Topic: Replace Function & Regular Expressions

Something along the lines of the following should do the trick... sString.replace(/(\w{3})\w+(\s\d+,\s\d{4})\s\d:\d+\s[A|P]M/, "$1$2")

 
Feb 18, 2008
Mikado 499 posts

Topic: Replace Function & Regular Expressions

If you don't like RegExp, why use them?

var x = new Date("December 21, 2006 2:39 PM"); alert(x.toDateString());