I'm trying to match as an example the following line of text via a trigger.
(13) (M)(G)(H) Ice Cold Arnold Palmer (120)
The first set of brackets can be in the format as
( 1) or (10) or absent. The number of potions.
second set of brackets "(M)(G)(H)" can be any combination e.g (M)(G) or (M) or (G) etc.
The name (Ice Cold..) I have put into a variable to match.
The last bracket will always be present and will be any number up to 201.
Currently I've got it to match too many things or nothing at all.
I have the following so far. I've tried using various online regex sites to decode it but end result is a headache.
to match: (13) (M)(G)(H) Ice Cold Arnold Palmer (120)
Any help would be appreciated.
Thanks
Dak
(13) (M)(G)(H) Ice Cold Arnold Palmer (120)
The first set of brackets can be in the format as
( 1) or (10) or absent. The number of potions.
second set of brackets "(M)(G)(H)" can be any combination e.g (M)(G) or (M) or (G) etc.
The name (Ice Cold..) I have put into a variable to match.
The last bracket will always be present and will be any number up to 201.
Currently I've got it to match too many things or nothing at all.
I have the following so far. I've tried using various online regex sites to decode it but end result is a headache.
to match: (13) (M)(G)(H) Ice Cold Arnold Palmer (120)
^\s*\((\s\d|\d*)\)\s(?:\((\w+)\)\s)*(@!variable)\s\((.*)\)$
Any help would be appreciated.
Thanks
Dak