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 1 of 3 (23 total posts)
  • Need Help Combining Two Regular Expressions

    I'm working on a bookmarklet. I've got both parts working, but I don't know how to put them together. Here are two URLs to ...
    Posted to Construction Advice (Forum) by SimonDorfman on January 12, 2012
  • Javascript Bookmarklet Replace All Matches

    I'm working on a bookmarklet. I've almost got it working, but it's not replacing all matches. Here are two sample URLs to ...
    Posted to Construction Advice (Forum) by SimonDorfman on January 11, 2012
  • Full Circle - JavaScript Date validation with regex

    Several year ago I decided to learn Regular Expressions. I had been skimming over an article about using regex for validation on web pages. It was at least a couple of weeks before I sat down an read the article in full. After I did I wanted to try to write a regex on my one but couldn't think of anything original. Eventually I wrote ...
    Posted to Michael Ash's Regex Blog (Weblog) by mash on November 1, 2011
  • Optimizing a string replacement algorithm in javascript

    Ok so I have a rather slow algorithm that I would really love some advice to speed up! It may repeat many times over different large data strings. The string 'data' contains "variables" (denoted by ${myVarName} in the data) that must be replaced with the value of the corresponding (either by id or name) element on the html page. ...
    Posted to Performance (Forum) by floss on May 9, 2011
  • match optional fields

    I have a fields that looks like this <div class="some">   <h2>title</h2>    <p>text text</p>     <table>         <tr class="some1"><td>data1</td><td>d1 ...
    Posted to Construction Advice (Forum) by Aradiv on March 9, 2011
  • Regex Expert Job at CISCO in San Jose, California

    Our Security Technology Business Unit is looking for Senior Software Engineer that is an expert in Regular Expressions, JavaScript and Rewrite Engine. Please let me know if you can recommend anyone.   Thanks in advance, Brent     Senior Software Engineer (Rewrite Engine, Regular Expression, Parsers, JavaScript) Location – ...
    Posted to Announcements (Forum) by Brent Rogers on February 22, 2011
  • Parse SQLite ALTER, CREATE & UPDATE

    My project involves running ad hoc SQL statements against a SQLite database. I'm looking for a JavaScript regex expression to parse out the ALTER, CREATE and UPDATE sql statements. Here's examples and the results I'm looking for. Create Index     CREATE INDEX Christy...     CREATE INDEX IF NOT EXISTS ...
    Posted to Construction Advice (Forum) by DataZombies on January 25, 2011
  • Re: Writing a simple parser for named backrefs in JS

    martinp:Hi All, I want to write a simple parser for named backrefs in JS, similar syntax to that used in Python. So, I have a function that takes a string that represents a regexp, but is not a real regexp in JS because it contains names for backrefs. My first job is to get an array containing the names, which I am trying to use another regexp ...
    Posted to Construction Advice (Forum) by mash on January 17, 2011
  • Regular expression to replace "x^y" with "Math.pow(x,y)"

    Hi, I need a regular expression to replace the caret ^ character with Math.pow, some examples of what I need: 2^3 -> Math.pow(2,3) 5*2^32+1 -> 5*Math.pow(2,32)+1 2*(3+1)^(8+(2+3)*2)+99 -> 2*Math.pow((3+1),(8+(2+3)*2))+99 2^3^4+1 -> Math.pow(2,Math.pow(3,4))+1 I think this is quite a challenge ...
    Posted to Construction Advice (Forum) by linolium on January 12, 2011
  • Trying to capture a series of values.

    Howdy all, I've got this incoming string "132 / 456 / 789" (Or sometimes even "123/456/789" but it should always be with / seperating the numeric values.) and I'm trying to capture just the numbers and move them into a variable.  My RegEx is:  ([0-9]+)(?:[^0-9]*)([0-9]+)(?:[^0-9]*)([0-9]+)(?:[^0-9]*) So, ...
    Posted to Construction Advice (Forum) by EtanSivad on July 13, 2010
1 2 3 Next >