About 69 results
Open links in new tab
  1. 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, 2 months ago Modified 1 year, 5 months ago Viewed 39k times

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

  3. strcmp - Compare strings - MATLAB - MathWorks

    This MATLAB function compares s1 and s2 and returns 1 (true) if the two are identical and 0 (false) otherwise.

  4. JavaScript - Use variable in string match - Stack Overflow

    Although the match function doesn't accept string literals as regex patterns, you can use the constructor of the RegExp object and pass that to the String.match function:

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

  6. How to match a substring in a string, ignoring case

    How to match a substring in a string, ignoring case Asked 14 years, 7 months ago Modified 2 years, 10 months ago Viewed 290k times

  7. Reset local repository branch to be just like remote repository HEAD

    Oct 27, 2009 · Thank you for your answer. You said 'Note that the first example assumes that the remote repo's name is "origin" and that the branch named "master" in the remote repo matches the …

  8. contains - Determine if pattern is in strings - MATLAB

    This MATLAB function returns 1 (true) if str contains the specified pattern, and returns 0 (false) otherwise.

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

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