|
|
Search
You searched for the word(s):
Showing page 1 of 5 (47 total posts)
< 1 second(s)
-
def getCategories(url):
res=[]
f=urllib.urlopen(url)
a=f.read()
f.close()
#p=re.compile(r'<a ...
-
I never said I wanted to match php/c#/c++ compliant comments, I said I wanted to match comments in the scenarios expressed above. Don't assume too much. If I didn't say it, I didn't mean it. From being regulars on forums, I can see you two are probably used to the majority of people who post questions and want you to assume ...
-
I never said I wanted to match php/c#/c++ compliant comments, I said I wanted to match comments in the scenarios expressed above. Don't assume too much. If I didn't say it, I didn't mean it. From being regulars on forums, I can see you two are probably used to the majority of people who post questions and want you to assume ...
-
thanks for the help/input susan
your latest regex solution matches here:
/*
//this is a match
*/
in the 3rd subgroup and as well as the full match
I don't understand how you're unsure about my overall goal, its verbatim my first post here, I always try to specifically explain it well.
I"m trying to identify all the ...
-
I have been working on this regex for about 5 hours straight no joke, its driving me nuts, I've tried several, several things.
Here are the rules:
it must match // followed by any non linebreak characters
ONLY if it is not in between /* */
here are some example matches:
//* ...
-
Here's my solution:
<?php
function preg_match_ignore_pat($searchPat, $ignorePat, $hay, &$matchesArr) {
$matches = preg_match_all($ignorePat, $hay, $out);
if ($matches && !empty($out[0])) {
$splitArr = preg_split($ignorePat, $hay, -1, ...
-
I'm having trouble writing a regex to match a phrase ignoring text that is inside html tags.
Surely a programming algorithm to match this is possible, but I'd like to do it in regex.
Haystack:
<b>this</b> hello <span id="this"> whatever </span> man
What is bold below is the expected ...
-
I will not waste my time with this foolish argument, but I will say to Steve and Mash on your remarks of "real" data and "the purposes of these forums", you are both wrong on many levels. Do not say you have a problem with the "realness of the data" when you really mean you have a problem with question, concept, or ...
-
this is the real data, does anyone want to answer my question?
re-read this: "i want to match the literal 18 followed by [any amount of characters
that is less than 20 characters and not including the literal '12']
followed by the literal 12"
I wanted it to be lazy and not consume the '12' before it gets ...
-
I'd like to know how to use the all character consuming .*? and be able to limit how much it can consume, specifically with a range.
Here's a example I made up:
i want to match the literal 18 followed by [any amount of characters that is less than 20 characters and not including the literal '12'] followed by the literal 12
in ...
1
|
|
|