Top "Match" questions

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

Create new column in dataframe based on partial string matching other column

I have a dataframe with 2 columns GL and GLDESC and want to add a 3rd column called KIND based on …

regex string r match partial
PHP regex non-capture non-match group

I'm making a date matching regex, and it's all going pretty well, I've got this so far: "/(?:[0-3])?[0-9]-(?:[0…

php regex date preg-match match
Is there a way to check if two object contain the same values in each of their variables in python?

How do I check if two instances of a class FooBar(object): __init__(self, param): self.param = param self.param_2 = …

python object match
mongodb multiple match conditions and return documents with common name

below data is present in "examSheet" collection {"name":"a1", "std":"9", "year":"2017", "exam":"halfyr_T", "marks":[{"p":"45","m":"40","c":"50"}]} {"name":"a1", "…

mongodb match aggregation-framework multiple-conditions
Pattern matching field names with jq

This is a very basic (probably silly) question but I can't get it to work... I have a JSON file …

json regex key match jq
Regex to grab strings between square brackets

I have the following string: pass[1][2011-08-21][total_passes] How would I extract the items between the square brackets …

javascript regex match
MERGE table, do nothing when matched

I have a table DOMAINS in 2 different schemas with columns ID, NAME,CODE,DESCRIPTION. For any NAME exist in new …

sql oracle merge match sql-merge
Replacing Text Inside of Curley Braces JavaScript

I am trying to use JavaScript to dynamically replace content inside of curly braces. Here is an example of my …

javascript replace match curly-braces dynamic-variables
Match string that doesn't contain a specific word

I'm working with ruby with the match method and I want to match an URL that doesn't contain a certain …

ruby regex match
match() returns array with two matches when I expect one match

Consider the following example: <html> <body> <script type="text/javascript"> var str="filename.jpg"; …

javascript regex string match