Answers for "match exact string"

1

regex match exact string

you want to achieve a case insensitive match for the word "rocket" 
surrounded by non-alphanumeric characters. A regex that would work would be:

\W*((?i)rocket(?-i))\W*
Posted by: Guest on August-23-2020
0

str.contains exact match

company_name = 'ABC'

item = r'^' + company_name + '$' 

df[‘company’].str.match(item).any()
Posted by: Guest on November-28-2020

Code answers related to "match exact string"

Code answers related to "Javascript"

Browse Popular Code Answers by Language