i have some trouble with this reg exp case :
Text: COSAAATANZOSALVAOOOTORRRE
Reg Exp C[A-Z]*S[A-Z]+T?
this give me this match
COSAAATANZOSALVAOOOT
but i need this match:
COSAAAT
how i can do it?
i have some trouble with this reg exp case :
Text: COSAAATANZOSALVAOOOTORRRE
Reg Exp C[A-Z]*S[A-Z]+T?
this give me this match
COSAAATANZOSALVAOOOT
but i need this match:
COSAAAT
how i can do it?
You can make you quantifiers lazy by adding a ?. Like so:
C[A-Z]*?S[A-Z]+?T