Top "Match" questions

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

A method to count occurrences in a list

Is there a simple way to count the number of occurrences of all elements of a list into that same …

c# .net-3.5 list count match
regular expression to match exactly 5 digits

testing= testing.match(/(\d{5})/g); I'm reading a full html into variable. From the variable, want to grab out all …

javascript regex match digit
Using match to find substrings in strings with only bash

Although I am almost sure this has been covered, I can't seem to find anything specific to this. As I …

regex bash match
Replace whole line when match found with sed

I need to replace the whole line with sed if it matches a pattern. For example if the line is …

shell replace sed match
JavaScript error: "val.match is not a function"

I used the match function for regular expression. The code I use is if(val.match(/^s+$/) || val == "" ) But the …

javascript match
Regex string match?

I have a long string in javascript like var string = 'abc234832748374asdf7943278934haskhjd'; I am trying to match like abc234832748374 …

javascript regex string match
using $and with $match in mongodb

I am trying to use the following query in MongoDB but it is not working. db.test.aggregate( $match: {$and: […

mongodb match
How to match a String against string literals in Rust?

I'm trying to figure out how to match a String in Rust. I initially tried matching like this, but I …

string match rust
SUMIF dynamically change summing column

I am using SUMIFS and want the sum_range dynamically to change according to the name I have of a …

excel indexing match sumifs
Python regex to match a specific word

I want to match all lines in a test report, which contain words 'Not Ok'. Example line of text : 'Test …

python regex match