|
#1
|
|||
|
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)).*\' | ||
Last edited by abyssalstalker; 05-16-2018 at 10:03 AM..
|
#2
|
|||
|
Try something like:
Code:
(?<!Crushed\s)Jaundice Gem | ||
#4
|
|||
|
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! | ||
#5
|
|||
|
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)).*\' | ||
#6
|
||||
|
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. | |||
#7
|
|||
|
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. | ||
#8
|
||||
|
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).
__________________
Loramin Frostseer, Oracle of the Tribunal <Anonymous> and Fan of the "Where To Go For XP/For Treasure?" Guides Anyone can improve the wiki! If you are new to the Blue server, you can improve the wiki to earn a "welcome package" of up to 2k+ platinum! Message me for details. | |||
Last edited by loramin; 08-02-2019 at 11:05 AM..
|
Thread Tools | |
Display Modes | |
|
|