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 regular expressions
Showing page 1 of 3 (24 total posts)
  • Is it possible to search for the non-existence of a string with a JavaScript regex?

    Is it possible to search for the non-existence of a string with a JavaScript regex? For example, show rows that do not contain the string "5aac49de-fc98-4239-8ad1-abf9291dc13c?" I want to to be able to hide rows in a table that come from a specific author/source which is a GUID in one of the columns. Thanks!  Jeff
    Posted to Construction Advice (Forum) by jamiller on February 26, 2010
  • Can't match more than one group

    I need a regex that matches a string containing groups of the english alphabet. In essence is very simple:  Given e.g. "EF_Form[group1(param1,param2),group2,group3(param1)]"  I'm trying to form in javascript an object such as:  var object = { group1: [param1, param2], group2: [], group3: [param1] };  The ...
    Posted to Construction Advice (Forum) by rendez on September 17, 2009
  • Getting content with 140+ chars between two tags.

    My problem is basically thus: I'm trying to parse an XML document used to post things to Twitter. Now, Twitter has a 140ch limit as some of you may very well be aware, so the regex I'm looking for has to find text between two XML tags that exceeds this limit (so, 141 or more chars). The text can consist of any combination of letters and ...
    Posted to Construction Advice (Forum) by Das on May 31, 2009
  • Regular Exrepssion Negative Look ahead problem

    I am very new to regular expressions. I have a senario in my java script where i m using regular expression. i have a long html string contain tags like 1. <IMG src="path/myImage1.jpg" alt="blah" border="0"/> 2. <IMG src="path/myImageTwo.jpg" alt="xyz" border="0"/> and ...
    Posted to Construction Advice (Forum) by down_with_java on January 10, 2009
  • URL Parser

    So, using JavaScript I have a parser for a URL:    function parseUrl(url) {       var e = /((http|https|ftp):\/\/)?((.*?)\/)?((.*)\/)?(.*)?/;       if (url.match(e)) {          return  { url:     ...
    Posted to Construction Advice (Forum) by vol7ron on November 5, 2008
  • Stripping Logging Statements in JavaScript

    Hi there, I'm using Perl regular expressions to try to find logging statements in my compressed JavaScript code and strip them out of my code. Here's what my regular expression looks like at the moment:          foreach my $line (@file_lines) {             # ...
    Posted to Construction Advice (Forum) by seanoshea on August 14, 2008
  • Re: Reading specific values from string:

    I used now your excellent tester at myregextester.com and my best result is:Source text:source_string_to_KEY1:VALUE1_match_with_pattern_KEY2:VALUE2 Raw Match Pattern: (?=KEY1:([^_]*))$matches Array: ( [0] => [1] => VALUE1 )This solution does'nt work with IE6 (below JS 1.5) But I'm looking for something ...
    Posted to Construction Advice (Forum) by mocambo on August 10, 2008
  • Re: Reading specific values from string:

    Thank you for your assistance ! More specific goal is find VALUE knowing a KEY from STRING. sampleString =  "source_string_to_KEY1:VALUE1_match_with_pattern_KEY2:VALUE2" So for example I need to capture (only) VALUE1 when i know only KEY1 from that sampleString. Key:Value pairs are with colon-separated form. All words are ...
    Posted to Construction Advice (Forum) by mocambo on August 10, 2008
  • Reading specific values from string:

    I'm trying to read some specific values from a string. elementName = "item add item:mk0090 destination:project1";  You can see there two  key:value  pairs. How can I find this value knowing an key ? Matching 'item:mk0090' or 'destination:project1' is easy: elementID.match( '/\b' + ...
    Posted to Construction Advice (Forum) by mocambo on August 9, 2008
  • hash and args

    greetings,    in javascript, i'm trying to pull out pieces of a url via regex. my url looks like this:   http://domain.com/index.html#hash=http://domain.com/index.php?arg=val&arg2=val2&meta=val&meta2=val   I want to be able to extract everything after hash= up until meta=. but i want it to go to meta= if ...
    Posted to Construction Advice (Forum) by trashman on July 21, 2008
1 2 3 Next >