I made a trigger that matches on...
^([ ]{5}|\(( \d|\d+)\) )(\([B-M]\))+ (.*?) (|\[\d+\/\d+\] )(?:\[\d+\])
Which means that if my inventory looks something like this:
it will grab only the item name and number of items in the inventory, ignoring the level and enchantment flags.
My problem is that with the addition of (\([B-M]\))+ it will only match on items that have these flags in them (so in this case it won't match on the dragon axe), so is there a way that I can set it to grab lines that don't have these flags as well as lines that do?
I tried (|\([B-M]\) )+, to signify a flag OR null but it doesn't work.
I can just remove it and pull out the flags in the scripting if I have to...
Edited by Nick to add [code] tags.
^([ ]{5}|\(( \d|\d+)\) )(\([B-M]\))+ (.*?) (|\[\d+\/\d+\] )(?:\[\d+\])
Which means that if my inventory looks something like this:
a dragon axe [83]
(G) a small blue key [0]
( 2) (K)(M)(G)(H) a Bag of Aardwolf [91]
it will grab only the item name and number of items in the inventory, ignoring the level and enchantment flags.
My problem is that with the addition of (\([B-M]\))+ it will only match on items that have these flags in them (so in this case it won't match on the dragon axe), so is there a way that I can set it to grab lines that don't have these flags as well as lines that do?
I tried (|\([B-M]\) )+, to signify a flag OR null but it doesn't work.
I can just remove it and pull out the flags in the scripting if I have to...
Edited by Nick to add [code] tags.