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

Browse by Tags

All Tags » between
  • Need a little help scoping my regex

    I have the following text that includes section and subsection numbers separated by a colon, followed by several words of text (I used lorem for this example): 1:1 Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed commodo, nisi non faucibus consequat, purus neque ultrices dolor, eget ornare ligula diam a velit. 1:2 Cras auctor massa ...
    Posted to Construction Advice (Forum) by RandyHJ on April 17, 2012
  • Return Data Between Words

    I am new to regex and was hoping for a quick example of how to return all data between 2 words in a multi-line file. In my example the word is "Header".  The word "Header" is on the first line of the file followed by more text, then about 20 lines down is the word "Header" again.  I'm looking for an ...
    Posted to Construction Advice (Forum) by erock24 on April 27, 2010
  • Changing patterns depending on structure within substring

    Hi regex experts, I’m searching for a regular expression for PHP’s preg_replace() in order to adjust concatenated strings (no multi-line). These strings are fragments in German which form a sentence and therefore need to be (automatically) edited to adhere to grammar conventions. Roughly speaking, the regular expression should ...
    Posted to Construction Advice (Forum) by casualcoder on March 20, 2010
  • noobe question on text extraction

    hi there I am wanting to extract sku code from image url that has two patterns. In the first case the image url ending pattern is as follows /images/uploads/19113604-5.jpg /images/uploads/19113604-4.jpg /images/uploads/19113604-3.jpg  and I use regex (?<=\buploads/)(\w+) $1 this results in 19113604 which is what I want. ...
    Posted to Construction Advice (Forum) by uzi on March 14, 2010
  • How to match between first occurence and end of line?

    Sample Text:      Ticket" Points="0.39298326181522797" Value="1.0" XMLNodeId="247" /> What I want to do is create an expression that selects:      " Points="0.39298326181522797" Value="1.0" XMLNodeId="247" /> However, I've ...
    Posted to Construction Advice (Forum) by snakyjake on September 30, 2009
  • Make Non-Match if in Between Certain Strings

    Here is what I'm trying to achieve with preg_match in PHP. I'm not going to lie to you, I have no understanding of conditionals or lookarounds in this stage, but I am trying to understand them. I need to only match a string if it is not in the middle of two other strings. Match "@import;" and "@import abc;" but not if ...
    Posted to Construction Advice (Forum) by bravos on June 9, 2009
  • Replacing space within anchor tag

    HI,  I'm using c# I need to replace all spaces between <a and > this mean only within the opening tag. i would like to replace the space with [SAVESPACE] Example: Input: Hello. <a href='blaaa' target='_blank'>hello world</a> blaaa <a href='blaaa2' ...
    Posted to Construction Advice (Forum) by SectionI on October 29, 2008