Ciao ! volevo fare questa espressione regolare:

con S= {a,b,c} volevo determinare quelle stringhe che contengono esattamente una b ..

A prima vista ho fatto

(a|c)*b(a|c)*

Solo che mi restituisce anche le stringhe del tipo aabbcca!

Qualcuno sa aiutarmi ?? grazie !!