About 2,610,000 results
Open links in new tab
  1. How to match, but not capture, part of a regex? - Stack Overflow

    The key observation here is that when you have either "apple" or "banana", you must also have the trailing hyphen, but you don't want to match it. And when you're matching the blank string, …

  2. OR condition in Regex - Stack Overflow

    Apr 13, 2013 · For example, ab|de would match either side of the expression. However, for something like your case you might want to use the ? quantifier, which will match the previous …

  3. Negative matching using grep (match lines that do not contain foo)

    How do I match all lines not matching a particular pattern using grep? I tried this: grep '[^foo]'

  4. regex - What do 'lazy' and 'greedy' mean in the context of regular ...

    Feb 20, 2010 · Taken From www.regular-expressions.info : Greedy quantifiers first tries to repeat the token as many times as possible, and gradually gives up matches as the engine …

  5. How to specify to only match first occurrence? - Stack Overflow

    Apr 13, 2010 · Yes. I am trying to first understand how to get the first occurrence and then next would like to find each match and replace.

  6. python match case part of a string - Stack Overflow

    Nov 9, 2022 · I want to know if I can use match cases within Python to match within a string - that is, if a string contains the match case. Example: mystring = "xmas holidays" match …

  7. regex - Python extract pattern matches - Stack Overflow

    Mar 11, 2013 · If this is the case, having span indexes for your match is helpful and I'd recommend using re.finditer. As a shortcut, you know the name part of your regex is length 5 …

  8. Match case statement with multiple 'or' conditions in each case

    Dec 2, 2022 · Match case statement with multiple 'or' conditions in each case Asked 2 years, 10 months ago Modified 1 year, 1 month ago Viewed 36k times

  9. matchFeatures - Find matching features - MATLAB - MathWorks

    This MATLAB function returns indices of the matching features in the two input feature sets.

  10. python - Check if string matches pattern - Stack Overflow

    From the docs on re.match: If zero or more characters at the beginning of string match the regular expression pattern. I just spent like 30 minutes trying to understand why I couldn't match …