String to find
b
Tested strings
b,ffb,x
b
<empty-string>
x,b
df,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