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

Browse by Tags

All Tags » regexp javascript
  • parsin html by using regex in c#

    <meta name="keywords" content="IBM 7976KAG SYSTEM X3400 QC 1.60GHZ 2GB 3X73,sunucular, server, markalı sunucular, markalı server, hp sunucular, hp, ibm, ibm sunucular, ibm server, century server, century sunucular"> <meta name="description" content="Fiyat:1879$+KDV | Kdv Dahil:2.877,95YTL | Havale ile %3 ...
    Posted to Construction Advice (Forum) by caglar26 on April 27, 2008
  • Regex to strip everything except <h3>, <h4> and <h5> tags and the text within these tags

    Regex to strip everything except <h3>, <h4> and <h5> tags and the text within these tags Platform: javascript Input: <div><p>Some text</p><h3><a href ="#">link text here</a></h3></div> Output: <h3>link text here</h3>
    Posted to Construction Advice (Forum) by pritesh on November 30, 2007
  • Back Reference Overwrites Changes

    I ran into an interesting situation where back references overwrite previous changes in a regular expression. I needed a regular expression that updated a pattern but also checked for something that comes before the pattern.  It should leave everything before the pattern as it was before the updates.  There can be multiple matches of ...
    Posted to Construction Advice (Forum) by AProgrammer on November 20, 2007
  • Help in writing a regular expression

    Hi, I have a validation criteria which says: a number cannot start with "000" which is 9 digits in length. And it needs to be in one expression. Can somebody help me in writing a regular expression for this? Thank you
    Posted to Construction Advice (Forum) by trueharsh on July 31, 2007
  • Is this Impossible?

    This has been driving me crazy all day. Is there any way to match newlines or linebreaks in a textarea html element.  I am not talking about when a user adds a line break by hitting enter for example.  I am talking about when the browser automatically returns a newline or wraps the line.  These breaks need to be matched via ...
    Posted to Construction Advice (Forum) by lazukars on June 23, 2007
  • Re: RegEx to split string with a "," except "\,"

    The problem is with the way you are looking. When you check the character before the , you are telling the regular expression to include it. Use this expression which has a lookbehind expression in it. It will check the character before the comma and not include it in the match. (?<=[^\\]), I hope that helps, Brendan 
    Posted to Construction Advice (Forum) by Brendan on April 18, 2007
  • Re: Validation pattern for a text box?

    First I will let you know, that you should give a better description of what you want. Do you need to know how to do the javascript or the regex or both?  Should a single letter be a match? I assume that you need at least 2 values for it to be a match, and I am also just guessing that when you say single spaces you will allow more than one ...
    Posted to Construction Advice (Forum) by Brendan on March 7, 2007
  • letters, numbers and spaces only

    Good Day. I am using the following code to validate data on a HTML page function checkTermMoYr (strng) {  var error = "";  if (strng == "") {     error = "You didn't enter a Loan Term.\n";  } //var illegalChars = /\W/; var illegalChars = \s;   // allow only letters, numbers, ...
    Posted to Construction Advice (Forum) by ahbenshaut on January 26, 2007
  • split string ignoring spaces in double quotes

    im trying to convert a string into arrays in javascript using split() function. how to i split a string using spaces as a delimiter but ignoring spaces enclosed by double quotes. ie: john robert "peter rabbit" ?
    Posted to Construction Advice (Forum) by slith on November 30, 2006
  • Does javascript support named backreferences?

    given the following pattern: (?<Left>\[)\w*(?(Left)\]) intend to match: [somwthing][][39]xyz  not match: [aaf] but it seems named backreferences are not supported in javascript Firefox just complains about: “Error: invalid quantifier” any way to figure out this ?
    Posted to Construction Advice (Forum) by cube316 on November 23, 2006