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

Search

You searched for the word(s):
Showing page 1 of 5 (47 total posts) < 1 second(s)
  • [python] unknown reason for parse error

    def getCategories(url): &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; res=[] &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; f=urllib.urlopen(url) &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; a=f.read() &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; f.close() &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #p=re.compile(r&#39;&lt;a ...
    Posted to Construction Advice (Forum) by glz on March 17, 2008
  • Re: [.NET] matching single line php comments not in multiline comments (// not in /* */ style)

    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&#39;t assume too much. If I didn&#39;t say it, I didn&#39;t mean it. From being regulars on forums, I can see you two are probably used to the majority of people who post&nbsp;questions and&nbsp;want you to assume ...
    Posted to Construction Advice (Forum) by glz on February 27, 2008
  • Re: [.NET] matching single line php comments not in multiline comments (// not in /* */ style)

    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&#39;t assume too much. If I didn&#39;t say it, I didn&#39;t mean it. From being regulars on forums, I can see you two are probably used to the majority of people who post&nbsp;questions and&nbsp;want you to assume ...
    Posted to Construction Advice (Forum) by glz on February 27, 2008
  • Re: [.NET] matching single line php comments not in multiline comments (// not in /* */ style)

    thanks for the help/input susan your latest regex solution matches here: /* //this is a match */ &nbsp; in the 3rd subgroup and as well as the full match I don&#39;t understand how you&#39;re unsure about my overall goal, its verbatim my first post here, I always try to specifically explain it well. I&quot;m trying to identify all the ...
    Posted to Construction Advice (Forum) by glz on February 26, 2008
  • [.NET] matching single line php comments not in multiline comments (// not in /* */ style)

    I have been working on this regex for about 5 hours straight no joke, its driving me nuts, I&#39;ve tried several, several things. Here are the rules: it must match // followed by any non linebreak characters &nbsp;ONLY if it is not in between /*&nbsp;&nbsp;&nbsp; */ &nbsp; here are some example matches: //* ...
    Posted to Construction Advice (Forum) by glz on February 26, 2008
  • Re: [PHP/PCRE] Matching phrase not in html tags

    Here&#39;s my solution: &nbsp; &lt;?php function preg_match_ignore_pat($searchPat, $ignorePat, $hay, &amp;$matchesArr) { &nbsp;&nbsp;&nbsp; $matches = preg_match_all($ignorePat, $hay, $out); &nbsp;&nbsp;&nbsp; if ($matches &amp;&amp; !empty($out[0])) { &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; $splitArr = preg_split($ignorePat, $hay, -1, ...
    Posted to Construction Advice (Forum) by glz on February 20, 2008
  • [PHP/PCRE] Matching phrase not in html tags

    I&#39;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&#39;d like to do it in regex.&nbsp; &nbsp; Haystack: &lt;b&gt;this&lt;/b&gt; hello &lt;span id=&quot;this&quot;&gt; whatever &lt;/span&gt; man What is bold below is the expected ...
    Posted to Construction Advice (Forum) by glz on February 19, 2008
  • Re: using .*? but limiting amount of characters to match

    I will not waste my time with this foolish argument, but I will say to Steve and Mash on your remarks of &quot;real&quot; data and &quot;the purposes of these forums&quot;, you are both wrong on many levels. Do not say you have a problem with the &quot;realness of the data&quot; when you really mean you have a problem with question, concept, or ...
    Posted to Construction Advice (Forum) by glz on February 14, 2008
  • Re: using .*? but limiting amount of characters to match

    this is the real data, does anyone want to answer my question? &nbsp; &nbsp;re-read this: &quot;i want to match the literal 18 followed by [any amount of characters that is less than 20 characters and not including the literal &#39;12&#39;] followed by the literal 12&quot; I wanted it to be lazy and not consume the &#39;12&#39; before it gets ...
    Posted to Construction Advice (Forum) by glz on February 13, 2008
  • using .*? but limiting amount of characters to match

    I&#39;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&#39;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 &#39;12&#39;] followed by the literal 12 in ...
    Posted to Construction Advice (Forum) by glz on February 13, 2008
1 2 3 4 5 Next >