|
|
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? 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
-
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 ...
-
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 ...
-
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 ...
-
So, using JavaScript I have a parser for a URL:
function parseUrl(url) {
var e = /((http|https|ftp):\/\/)?((.*?)\/)?((.*)\/)?(.*)?/;
if (url.match(e)) {
return { url: ...
-
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) {
# ...
-
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 ...
-
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 ...
-
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' + ...
-
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 ...
1
|
|
|