Top "String-matching" questions

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

javascript regular expression to check for IP addresses

I have several ip addresses like: 115.42.150.37 115.42.150.38 115.42.150.50 What type of regular expression should I write if I want to search for …

javascript regex string string-matching
Return positions of a regex match() in Javascript?

Is there a way to retrieve the (starting) character positions inside a string of the results of a regex match() …

javascript regex match string-matching
How to check if matching text is found in a string in Lua?

I need to make a conditional that is true if a particular matching text is found at least once in …

string lua conditional string-matching
Using Java Regex, how to check if a string contains any of the words in a set ?

I have a set of words say -- apple, orange, pear , banana, kiwi I want to check if a sentence …

java regex string-matching
Delete duplicate strings in string array

I am making a program based on string processing in Java in which I need to remove duplicate strings from …

java arrays string-matching
High performance fuzzy string comparison in Python, use Levenshtein or difflib

I am doing clinical message normalization (spell check) in which I check each given word against 900,000 word medical dictionary. I …

python string-matching levenshtein-distance difflib
How to select R data.table rows based on substring match (a la SQL like)

I have a data.table with a character column, and want to select only those rows that contain a substring …

r data.table string-matching
php string matching with wildcard *?

I want to give the possibility to match string with wildcard *. Example $mystring = 'dir/folder1/file'; $pattern = 'dir/*/file'; stringMatchWithWildcard($…

php regex string-matching
Find numbers after specific text in a string with RegEx

I have a multiline string like the following: 2012-15-08 07:04 Bla bla bla blup 2012-15-08 07:05 *** Error importing row no. 5: …

regex string powershell string-matching powershell-4.0
Regular Expression Arabic characters and numbers only

I want Regular Expression to accept only Arabic characters, Spaces and Numbers. Numbers are not required to be in Arabic. …

regex unicode string-matching