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

    The match will be $& unless you use look-before and look-behind (unsure whether using those will actually save any memory); if you are interested in just a part of the match, use a capturing group.

  2. Regular expression to match string starting with a specific word

    Nov 13, 2021 · How do I create a regular expression to match a word at the beginning of a string? We are looking to match stop at the beginning of a string and anything can follow it. For example, the …

  3. Regex Match all characters between two strings - Stack Overflow

    May 24, 2011 · To match as least as possible characters, you can make the quantifier non greedy by appending a question mark, and use a capture group to extract the part in between.

  4. regexp - Match regular expression (case sensitive) - MATLAB

    This MATLAB function returns the starting index of each substring of str that matches the character patterns specified by the regular expression.

  5. How can I match "anything up until this sequence of characters" in a ...

    ^ match start of line .* match anything, ? non-greedily (match the minimum number of characters required) - [1] [1] The reason why this is needed is that otherwise, in the following string: whatever …

  6. excel - how to resolve Power BI error - the key didn't match any rows ...

    Oct 16, 2019 · Expression.Error: The key didn't match any rows in the table. Details: Key = Item=200704 Kind=Sheet Table= [Table] How do I resolve this error? If it helps, Power BI generate 5 queries for …

  7. regex - Matching strings in PowerShell - Stack Overflow

    Jul 18, 2018 · Preface: PowerShell string- comparison operators are case-insensitive by default (unlike the string operators, which use the invariant culture, the regex operators seem to use the current …

  8. Regular expression to match a line that doesn't contain a word

    Jan 2, 2009 · I know it's possible to match a word and then reverse the matches using other tools (e.g. grep -v). However, is it possible to match lines that do not contain a specific word, e.g. hede, using a …

  9. python - IndentationError: unindent does not match any outer ...

    When I compile the Python code below, I get IndentationError: unindent does not match any outer indentation level import sys def Factorial(n): # Return factorial result = 1 for i in range...

  10. Python: match/case by type of value - Stack Overflow

    May 18, 2022 · You can match directly against the type of v, but you need a value pattern to refer to the types to match, as a "dotless" name is a capture pattern that matches any value.