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

    The key observation here is that when you have either "apple" or "banana", you must also have the trailing hyphen, but you don't want to match it. And when you're matching the blank string, …

  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 …

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

  4. If two cells match, return value from third - Stack Overflow

    Oct 15, 2014 · =INDEX(B:B,MATCH(C2,A:A,0)) I should mention that MATCH checks the position at which the value can be found within A:A (given the 0, or FALSE, parameter, it looks only for …

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

    Match dot in the pattern with any character that is not a newline character. (?-m) Match the ^ and $ metacharacters at the beginning and end of text (default). (?m) Match the ^ and $ …

  6. Regular expression "^ [a-zA-Z]" or " [^a-zA-Z]" - Stack Overflow

    Jan 5, 2011 · Yes, the first means "match all strings that start with a letter", the second means "match all strings that contain a non-letter". The caret ("^") is used in two different ways, one to …

  7. How to check whether a string contains a substring in JavaScript?

    Nov 24, 2009 · // Searches for the given pattern string in the given text string using the Knuth-Morris-Pratt string matching algorithm. // If the pattern is found, this returns the index of the …

  8. RegEx for matching "A-Z, a-z, 0-9, _" and "." - Stack Overflow

    May 14, 2019 · From beginning until the end of the string, match one or more of these characters. Edit: Note that ^ and $ match the beginning and the end of a line. When multiline is enabled, …

  9. Highlight Rows in Sheet1 that match values in Sheet2

    Nov 4, 2016 · I need a formula or Macro that will look at all SKUs in Sheet2, then find any matches in Sheet1 ColA, then highlight the rows where there is a match. I would really …

  10. erase - Delete substrings within strings - MATLAB - MathWorks

    newStr = erase(str,match) deletes all occurrences of match in str. The erase function returns the remaining text as newStr. If match is an array, then erase deletes every occurrence of every …