Top "Match" questions

A programming concept about finding results based on some kind of search.

How to replace a character within a matched pattern using ampersand (&)

When we match a pattern using sed, the matched pattern is stored in the "ampersand" (&) variable. IS there a …

sed match ampersand
Match and Get the Value from another table (Vlookup)

I have 2 tables connected to each other through col A. I want to match the column C with Col A …

powerbi match dax vlookup
VLookup type method in R

I have a df with thousands of tickers for different future contracts. They have the abbreviated name (which appears later) …

r match vlookup
regex street address match

While I know that matching a street address will never be perfect I'm looking to create a couple of regex …

javascript regex match highlight street-address
Scala: match and parse an integer string?

I'm looking for a way to matching a string that may contain an integer value. If so, parse it. I'd …

scala parsing match
Extract only whole word using grep

I've got a big text file. I need to extract all the lines which contains the exact word "DUSP1". Here …

regex grep match exact-match
Javascript Regex - Find all possible matches, even in already captured matches

I'm trying to obtain all possible matches from a string using regex with javascript. It appears that my method of …

javascript regex string match
Negation of %in% in R

Is there a short negation of %in% in R like !%in% or %!in%? Of course I can negate c("A", "…

r match negation
Pattern/Matcher group() to obtain substring in Java?

UPDATE: Thanks for all the great responses! I tried many different regex patterns but didn't understand why m.matches() was …

java regex string match
How to match a string on a prefix and get the rest?

I can write the code like this: str match { case s if s.startsWith("!!!") => s.stripPrefix("!!!") case _ => } But …

scala match