Top "Match" questions

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

compare two lists in python and return indices of matched values

For two lists a and b, how can I get the indices of values that appear in both? For example, …

python list match indices
Why does pattern matching in Scala not work with variables?

Take the following function: def fMatch(s: String) = { s match { case "a" => println("It was a") case _ => println("…

scala pattern-matching match
delete lines with sed match a special regex

I try to delete all lines who beginn with some optional special chars followed by blubb: thats the lines I …

regex sed match
Regex to match md5 hashes

What type of regex should be used to match a md5 hash. how to validate this type of string 00236a2…

php regex match
How can I test if a filename matching a pattern exists in Perl?

Can I do something like this in Perl? Meaning pattern match on a file name and check whether it exists. …

perl file match exists glob
T-SQL Get percentage of character match of 2 strings

Let's say I have a set of 2 words: Alexander and Alecsander OR Alexander and Alegzander Alexander and Aleaxnder, or any …

tsql statistics character match
How to extract text in php using regex

My Text : 12a49803-713c-4204-a8e6-248e554a352d_ Content-Type: text/plain; charset="iso-8859-6" Content-Transfer-Encoding: base64 DQrn0…

php regex extract match
Angular js - check if current url matches the route (with dynamic url params)

i'm simply doing setting this: app.config(['$routeProvider',function($routeProvider) { $routeProvider .when('/asd/:id/:slug',{ templateUrl:'views/home/…

javascript angularjs match ngroute
Conditional merge/replacement in R

I have two data frames: df1 x1 x2 1 a 2 b 3 c 4 d and df2 x1 x2 2 zz 3 qq I want …

r match r-faq
Python- how do I use re to match a whole string

I am validating the text input by a user so that it will only accept letters but not numbers. so …

python string match