About 2,690,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. If two cells match, return value from third - Stack Overflow

    Oct 15, 2014 · =INDEX(B:B,MATCH(C2,A:A,0)) I should mention that MATCH checks the position at which the value can be found within A:A (given the 0, or FALSE, parameter, it looks only for …

  3. 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 …

  4. C# Regex Validation Rule using Regex.Match() - Stack Overflow

    aaaa999999 matches aaaa9999999 matches aaaa99999999 doesn't match aaa999999 doesn't match. Try it as ...

  5. How can I compare two lists in python and return matches

    A quick performance test showing Lutz's solution is the best: import time def speed_test(func): def wrapper(*args, **kwargs): t1 = time.time() for x in xrange(5000): results = func(*args, …

  6. matchFeatures - Find matching features - MATLAB - MathWorks

    The function rejects a match when the distance between the features is greater than the value of MatchThreshold. Increase the value to return more matches. Increase the value to return more …

  7. How do if statements differ from match/case statments in Python?

    Jun 13, 2021 · This question asks for a switch/case or match/case equivalent in Python. It seems since Python 3.10 we can now use match/case statement. I cannot see and understand the …

  8. Regex: ignore case sensitivity - Stack Overflow

    Mar 11, 2012 · /G[a-b].*/i string.match("G[a-b].*", "i") Check the documentation for your language/platform/tool to find how the matching modes are specified. If you want only part of …

  9. What is the difference between re.search and re.match?

    Jun 5, 2023 · If zero or more characters at the beginning of string match the regular expression pattern, return a corresponding MatchObject instance. Return None if the string does not …

  10. regex - Match groups in Python - Stack Overflow

    Is there a way in Python to access match groups without explicitly creating a match object (or another way to beautify the example below)? Here is an example to clarify my motivation for …

Refresh