About 93 results
Open links in new tab
  1. 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.

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

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

  3. MATLAB - MathWorks

    The official home of MATLAB software. MATLAB is the easiest and most productive software environment for engineers and scientists. Try, buy, and learn MATLAB.

  4. RegEx match open tags except XHTML self-contained tags

    The tag to match may end with a simple ">" symbol, or a possible XHTML closure, which makes use of the slash before it: (/>|>). The slash is, of course, escaped since it coincides with the regular …

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

    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 expression ...

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

    May 24, 2011 · Example: This is just\\na simple sentence. I want to match every character between This is and sentence. Line breaks should be ignored. I can't figure out the correct syntax.

  7. regex - How do I match any character across multiple lines in a regular ...

    Oct 2, 2008 · To clarify; I was originally using Eclipse to do a find and replace in multiple files. What I have discovered by the answers below is that my problem was the tool and not regex pattern.

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

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

    Jun 13, 2021 · 29 PEP 622 provides an in-depth explanation for how the new match-case statements work, what the rationale is behind them, and provides examples where they're better than if …

  10. 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]'