Got more questions? Find advice on: ASP | SQL | XML | Windows
in Search
Welcome to RegexAdvice Sign in | Join | Help

Browse by Tags

All Tags » javascript
Showing page 2 of 3 (23 total posts)
  • Help needed to: Read data between XML tag

    Hi,  I have a XML tag called: <cli>content</cli>.  I want to read (extract) the content out of the tags. so that i can read "content" without having the XML tags around it.   I have this code already that works: ----------------------------  <input type="textbox" ...
    Posted to Construction Advice (Forum) by hamid.afshar on May 21, 2010
  • Adding string within url

    Hi, I'm trying to construct a javascript code to be used as a bookmark in my browser. A click on the bookmark should add a string to the url of the currently shown web site. For example, the site http://www.jstor.org/stable/2497020 should become http://www.jstor.org.proxy.libraries.org/stable/2497020. So far, I have following code to be ...
    Posted to Construction Advice (Forum) by pod-o-mart on April 13, 2010
  • check the brackets by regexp

    Hi I want a regexp to check that every open parenthesis has a closed parenthesis. thank you in advance
    Posted to Construction Advice (Forum) by devMan on December 16, 2009
  • IE6 regex compatibility issue

    This is about a strange behavior IE shows for a regex matching Im trying to do. Here is a password matching expression Im trying to use for matching the below conditions. Must contain minimum 8 to 20 characters, mandatorily including one letter and number May include only one of the following special characters: %,&, _, ?, ...
    Posted to Platform Differences (Forum) by mays on December 15, 2009
  • [JavaScript] Mixed Numbers Superscript

    Hello, I have multiple dynamically generated tables with lots of different types of content in each cell. Some cells contain a mixed number represented by #-#/# (e.g. 4-5/6) What I'm trying to do is replace the fraction part of the mixed numbers (along with the hyphen) that might be located in a cell with <span ...
    Posted to Construction Advice (Forum) by maliwik on August 3, 2009
  • Help parsing name, phone, email, street address, website from block of text in JavaScript

    I'm a regex noob - but excited that I found this site. Trying to figure out if this is even possible to do use regex and javascript. I would like to parse a block of text that is stored in a javascript variable.  This text is a mix of contact information and other miscellaneous information - some of which is of no value. Ideally, ...
    Posted to Construction Advice (Forum) by fenstermakera on July 8, 2009
  • Re: Date increment

    Hi, With JavaScript's Date object you can easily do it: <script type="text/javascript"> var oDate = new Date; var newTime = oDate.getTime() + 60*60*1000 oDate.setTime(newTime); alert(oDate); </script> To learn more about JavaScript Date object: http://www.w3schools.com/jsref/jsref_obj_date.asp
    Posted to Construction Advice (Forum) by sempsteen on May 18, 2009
  • Date increment

    Hi all, first post, so I hope I'm posting this correctly. I need to increment the hour in JavaScript by 1 (i.e. I need to get the current hour, add an hour, and then return the answer). An example of the string is as follows (the hour is bolded): 2009-05-18T16:15:00Z I'm re-learning RegEx after not visiting it for years, so I'd ...
    Posted to Construction Advice (Forum) by regexn00bpain on May 18, 2009
  • alter href matching expression to exclude links starting with "javascript"

    I'm not sure exactly what this expression is doing (I can't parse regex), but I'd guess it's basically matching an href link: /<a (.*?)href=[\'\"](.*?)\/\/([^\'\"]+?)[\'\"](.*?)>(.*?)<\/a>/i I'd like to modify it so that it excludes any href link that starts with ...
    Posted to Construction Advice (Forum) by SimonDorfman on March 17, 2009
  • Parse URL, Extract part after .edu/

    I'm trying to create two javascript bookmarklets:1. Take the current URL of the page and open a new window with a URL based on the current page. Some examples (I use "->" to mean "this URL turns into that URL"): http://example.edu/som/faculty_staff.cfm#HeaderTitle -> ...
    Posted to Construction Advice (Forum) by SimonDorfman on March 16, 2009