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

    A variation of the expression by @Gumbo that makes use of \K for resetting match positions to prevent the inclusion of number blocks in the match. Usable in PCRE regex flavours.

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

  3. matchFeatures - Find matching features - MATLAB - MathWorks

    This MATLAB function returns indices of the matching features in the two input feature sets.

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

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

    to capture a match between start and the first occurrence of end. Notice how the subexpression with nested parentheses spells out a number of alternatives which between them allow e only if it isn't …

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

    Oct 2, 2008 · For example, this regex (.*)<FooBar> will match: abcde<FooBar> But how do I get it to match across multiple lines? abcde fghij<FooBar>

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

  8. Match everything except for specified strings - Stack Overflow

    Mar 8, 2010 · I know that the following regex will match "red", "green", or "blue". red|green|blue Is there a straightforward way of making it match everything except several specified strings?

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

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