String to find
b
Tested strings
b,ffb,xb<empty-string>x,bdf,b,x
Poor attempt
[\s|,|^]+(b)[\s|,|$]+
[\s|,|^]+- find white space, comma or beginning of string(b)- find the desired string[\s|,|$]+- find white space, comma or end of string
Notes
if b defined twice I want to have a match as well
Aucun commentaire:
Enregistrer un commentaire