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 275 (2,743 total posts) < 1 second(s)
  • Re: Extracting 3 variables in body of code

    You don&#39;t say what regex variant you are using so I have no idea if this will work or not but I have tried to use fairly commonly available syntax. Try the pattern: \[\{\{address\sline (\|( &nbsp; 1\s*=\s*(((?![|}]).)*) &nbsp; | &nbsp; 2\s*=\s*(((?![|}]).)*) ))+\}\}\s* (((?!]).)*)\] which I have split over several lines for readability. You ...
    Posted to Construction Advice (Forum) by Aussie Susan on June 16, 2013
  • Re: Parsing RTF for extracting the included formating style names

    You are asking to do something that is actually not possible with a &quot;standard&quot; regex - this is known as a &quot;balanced parentheses&quot; problem and requires that the regex engine has some ability to &quot;count&quot; which generally they don&#39;t. However there are 3 (and a bit) exceptions. The .NET and PCRE library have (different) ...
    Posted to Construction Advice (Forum) by Aussie Susan on May 9, 2013
  • Re: Parsing html input value attribute

    First things first - trying to parse HTML (or XML for that matter)&nbsp;using&nbsp;a regex expression is almost always going to end in tears. HTML is just too variable and, depending on how it is generated, it can contain things that are (possibly) valid HTML but cannot be anticipated with a regex expression. The way to parse HTML (or XML) is to ...
    Posted to Construction Advice (Forum) by Aussie Susan on April 23, 2013
  • Re: Matching especific note

    Can you please let us know the regex variant you are using - unfortunately they are not all the same and the pattern I have suggested below may or may not work for you. I think I have come close with: (\x20\x20|^)E(?!/)[\w/]*(\x20\x20|\r?$) with the &#39;multiline&#39; options set (and the &#39;ignore case&#39; not set - it doesn&#39;t matter ...
    Posted to Construction Advice (Forum) by Aussie Susan on February 26, 2013
  • Re: linkify with a twist

    Sorry - my mistake. I was testing out both patterns and I must have copy and pasted the wrong one. It shuold be: (http|ftp|https):\/\/[\w.]*?facebook.com([\w\-.,@?^=%&amp;:/~+#]*([\w\- &nbsp;@?^=%&amp; /~+#]))? Also, if you tried to simply remove the &#39;!&#39; then 1) it would not have worked but 2) it shows that&nbsp;you&nbsp;probably have ...
    Posted to Construction Advice (Forum) by Aussie Susan on February 5, 2013
  • Re: linkify with a twist

    OK, for the first pass to look for the facebook URLs, try: &nbsp; (http|ftp|https):\/\/(?![\w.]*facebook.com)[\w\-_]+(\.[\w\-_]+)+([\w\-.,@?^=%&amp;:/~+#]*([\w\- &nbsp;@?^=%&amp; /~+#]))? &nbsp; with the replacement text: &lt;a href=\&quot;$0\&quot; target=\&quot;blank\&quot;&gt;facebook&lt;/a&gt; and the &quot;ignore case&quot; option ...
    Posted to Construction Advice (Forum) by Aussie Susan on February 4, 2013
  • Re: linkify with a twist

    What you want to do should be fairly straight forward. However I have little&nbsp;knowledge&nbsp;of how to detect a facebook URL - can you please let me&nbsp;know&nbsp;what the URLs look like. (I&#39;m guessing that the contain xxx.facebook.com but I am not sure). Also I am not clear what you are&nbsp;wanting&nbsp;to end up with at the end. ...
    Posted to Construction Advice (Forum) by Aussie Susan on February 4, 2013
  • Re: match directory paths whose last name is numeric

    I must admit that I thought the &quot;perl&quot; and &#39;grep&quot; were two separate things until I looked it up just now. Therefore I must also assume that the &quot;perl grep&quot; operator uses standard perl regex pattern operators. Given all that, have you tried the pattern mentioned above, namely /\/\d+$/ Without examples of the text ...
    Posted to Construction Advice (Forum) by Aussie Susan on January 28, 2013
  • Re: match directory paths whose last name is numeric

    The key issue here is likely to be the regex variant that is being used and the various capabilities it may have. (Unfortunately&nbsp;regex&nbsp;engines&nbsp;are NOT all the same). I am&nbsp;assuming&nbsp;that you are using some file search tool that can filter file names based on&nbsp;some&nbsp;regex pattern.&nbsp;Therefore&nbsp;we really need ...
    Posted to Construction Advice (Forum) by Aussie Susan on January 24, 2013
  • Re: Help with Multi Line Match

    Try: ^(\d{4}-\d{2}-\d{2})((?!(\d{4}-\d{2}-\d{2}|UTV\d{3})).)*UTV\d{3} with the &quot;singleline&quot; and &quot;multiline&quot; options set. You don&#39;t say what regex variant you are using so the above pattern assumes that you can use lookaheads (a fairly common capability). The way it works is as follows: ^ - with the ...
    Posted to Construction Advice (Forum) by Aussie Susan on January 14, 2013
1 2 3 4 5 Next > ... Last ยป