Top "String-matching" questions

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

Javascript fuzzy search that makes sense

I'm looking for a fuzzy search JavaScript library to filter an array. I've tried using fuzzyset.js and fuse.js, …

javascript regex pattern-matching string-matching fuzzy-search
Pandas text matching like SQL's LIKE?

Is there a way to do something similar to SQL's LIKE syntax on a pandas text DataFrame column, such that …

pandas string-matching sql-like
Fastest way to test two strings for exact match in JavaScript

I want to compare two strings in JavaScript to test if they are exactly the same. Which would be the …

javascript string-matching
How to search for a word in a text file and if found print out the entire line

My program needs to search for a word in a text file, and if it finds that word, to print …

c++ io string-matching
Delete to end of line after a match, keep lines not matched

I have a file of the following form: interesting text-MIB blah blah blah VERY INTERESTING TEXT interesting text-MIB blah blah …

sed line string-matching
Removing an item from list matching a substring

How do I remove an element from a list if it matches a substring? I have tried removing an element …

python list substring string-matching
Remove ends of string entries in pandas DataFrame column

I have a pandas Dataframe with one column a list of files import pandas as pd df = pd.read_csv(…

python pandas dataframe string-matching
Most efficient way to check if $string starts with $needle in perl

Given two string variables $string and $needle in perl, what's the most efficient way to check whether $string starts with $…

performance perl string-matching
XPath partial of attribute known

I know the partial value of an attribute in a document, but not the whole thing. Is there a character …

xpath string-matching
JavaScript regular expression - two [a-z] followed by three [0-9] only

I've got a simple regular expression: [A-z]{2}[0-9]{3})$/g inside the following: regForm.submit(function(){ if ($.trim($('#new-usr').val()).…

javascript regex string string-matching