About 2,640,000 results
Open links in new tab
  1. 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 …

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

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

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

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

  5. regex - Matching strings in PowerShell - Stack Overflow

    Jul 18, 2018 · I'm trying to match the file names against the recorded names in my CSV file. It generally works, but sometimes I get incorrect matches. Let's say I have two files that start …

  6. Regular expression to stop at first match - Stack Overflow

    Dec 1, 2012 · you can match. a[^ab]*b i.e specify a character class which excludes the starting and ending delimiiters. In the more general case, you can painstakingly construct an …

  7. Matching up to the first occurrence of a character with a regular ...

    The pattern will match everything up to the first semicolon, but excluding the semicolon. Also, the pattern will match the whole line if there is no semicolon. If you want the semicolon included in …

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

  9. Excel VLOOKUP - not detecting matches - Stack Overflow

    Aug 8, 2017 · There are some cases where the formula returns "#N/A", as if the match cannot be found in the lookup list, but where in fact there is a match in the list e.g. 300431419 (row 27 in …

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

    As others have said, re.match() checks for a match only at the beginning of the string. re.search() can mimic that too by prepending \A to whatever pattern used. On the other hand, …