Top "Match" questions

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

Excel: Check if Cell value exists in Column, and return a value in the same row but different column

After checking if a value exists in a column, I want to return the value of the cell in the …

match excel-formula vlookup
Case insensitive search in Mongo

I am using a case insensitive search in Mongo, something similar to https://stackoverflow.com/q/5500823/1028488. ie I am using …

regex mongodb pattern-matching match case-insensitive
R - Add a new column to a dataframe using matching values of another dataframe

I am trying to fill in table1 with matching val2 values of table2 table1$New_val2 = table2[table2$pid==table1$…

r dataframe match
Display only the n'th match of grep

onefish onechicken twofish twochicken twocows threechicken What if I want to grep for lines containing "two", but I only want …

bash grep pattern-matching match
Dictionary keys match on list; get key/value pair

In python... I have a list of elements 'my_list', and a dictionary 'my_dict' where some keys match in …

python list dictionary match key
Regex Match any string powershell

No matter how well I feel like I know regular expressions, they always seem to beat me. I am looking …

regex parsing powershell match
How to match an empty dictionary in Javascript?

From the node REPL thing, > d = {} {} > d === {} false > d == {} false Given I have an empty dictionary, how …

javascript dictionary match
Why won't re.groups() give me anything for my one correctly-matched group?

When I run this code: print re.search(r'1', '1').groups() I get a result of (). However, .group(0) …

python regex object match capture-group
In Perl, is there a built in way to compare two arrays for equality?

I have two arrays of strings that I would like to compare for equality: my @array1 = ("part1", "part2", "part3", "part4"); …

arrays perl compare match