Top "String-matching" questions

String matching is the problem of finding occurrences of one string (“pattern”, “needle”) in another (“text”, “haystack”).

python - regex search and findall

I need to find all matches in a string for a given regex. I've been using findall() to do that …

python regex search string-matching findall
How can I match fuzzy match strings from two datasets?

I've been working on a way to join two datasets based on a imperfect string, such as a name of …

r string-matching fuzzy-search fuzzy-comparison
tsql last "occurrence of" inside a string

I have got field containing comma separated values. I need to extract the last element in the list. I have …

sql-server-2008 tsql string-matching last-occurrence
Search for string allowing for one mismatch in any location of the string

I am working with DNA sequences of length 25 (see examples below). I have a list of 230,000 and need to look …

python string pattern-matching string-matching dna-sequence
Python Fuzzy Matching (FuzzyWuzzy) - Keep only Best Match

I'm trying to fuzzy match two csv files, each containing one column of names, that are similar but not the …

python string-matching fuzzy-search fuzzywuzzy
KMP failure function calculation

My professor solved the kmp failure function as follows: index 1 2 3 4 5 6 7 8 9 string a a b a a b a b b …

string-matching knuth knuth-morris-pratt
C#: How to Delete the matching substring between 2 strings?

If I have two strings .. say string1="Hello Dear c'Lint" and string2="Dear" .. I want to Compare the strings first …

c# string string-matching
Partial cell(or string) match in excel macro

I am new to VBA and I would like to do a partial string (or cell) match between two sheets. …

vba excel string-matching strikethrough
Returning the lowest index for the first non whitespace character in a string in Python

What's the shortest way to do this in Python? string = " xyz" must return index = 3

python string string-matching
agrep: only return best match(es)

I'm using the 'agrep' function in R, which returns a vector of matches. I would like a function similar to …

r text character string-matching agrep