Gina - excluding words as part of a search
Howdy,
I use Gina to notify me if people list certain items for auction so I can reach out to them. It works fantastic, but there's a feature I'd like to implement - how to exclude certain words from an item. For example, I'd like Gina to notify me when someone is auctioning 'Black Marble' but not 'Crushed Black Marble' and 'Jaundice Gem' but not 'Crushed Jaundice Gem' Below, I posted what I'm currently using. I've tried [^crushed] before the item but that doesn't seem to work. Any tips are appreciated! ^(?<seller>[A-Za-z]*) auctions, \'(?i:WTS|selling).*(?<item>(?i:Black Marble|Jaundice Gem|Flawed Sea Sapphire|Flawed Emerald|Flawless Diamond|Crushed Onyx Sapphire)).*\' |
Try something like:
Code:
(?<!Crushed\s)Jaundice Gem |
Quote:
|
Howdy, I'm back again but this time trying to exclude certain sellers from my list. Here's what I'm using:
^(?<seller>[A-Za-z]*) auctions, \'(?i:WTS|selling).*(?<item>(?i:Crushed Topaz|(?<!Chipped\s)Black Marble)).*\' I tried using the code Morticon provided at the beginning but it isn't seeming to work. Example: (?<!NAME\s)^(?<seller>[A-Za-z]*) auctions, \'(?i:WTS|selling).*(?<item>(?i:item1|(?<!Chipped\ s)Onyx Sapphire)).*\' I've also tried this below bit it seems to break the script ^((?<!name\s)?<seller>[A-Za-z]*) auctions, \'(?i:WTS|selling).*(?<item>(?i:item1|(?<!Chipped\ s)Onyx Sapphire)).*\' Any help is appreciated, thanks! |
The following should allow you to exclude a list of names:
Code:
^(?!(?:Name1|Name2|Name3)(?!\w))(?<seller>[A-Za-z]*) auctions, \'(?i:WTS|selling).*(?<item>(?i:Crushed Topaz|(?<!Chipped\s)Black Marble)).*\' |
Quote:
True talk, hit me up in EC on Deals and i'll be glad to tip you. This has helped me a lot and you deserve it. |
I have something similar where I have an overlay that pops up the hit point number when I am hit by damage:
{S} ([A-Za-z]) YOU for {N} or something like that - may be missing an asterisk or something. When I am healed that number also shows up, which makes sense, but I'm looking for how to exclude the number I am healed by from showing up, so I preserve just damage from showing up on the overlay. |
Just for any curious readers wondering what all this magic code is, it's called a "regular expression", and there are like a bajillion tutorials on how to write them yourself on the Internet, if you are interested.
Here's just one. Quote:
So in theory to get rid of the healing number you just need to add it, but don't put parentheses around it. But I'm not sure how that "{S}" and "{N}" stuff works (that's Gina-specific). I think they might include invisible parentheses or something, and if that's the case you can't use "{N}" (but hopefully someone who knows Gina better can help more). |
There's probably a more elegant way to do it, but this search text will work:
(?<!healed) you for {N} https://i.imgur.com/EIf3NBQ.png |
All times are GMT -4. The time now is 03:56 AM. |
Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.