I am using this regex in sscanf
sscanf($seat, "%d-%[^(](%[^@]@%[^)])");
And it works well when i'm getting this kind of strings:
173-9B(AA@3.45 EUR@32H)
but when i'm getting this kind of string:
173-9B(@3.14 EUR@32H)
it's all messed up, how can I also accept empty strings between the first (
and the first @
?