Hi, I'm trying to embed a hyperlink into part of the Achaea prompt - for example, "3106h, 3710m, 14000e, 16040w ex Vote-" - specifically, the Vote, and make it link to the web page to vote for Achaea. I was at first trying to use lookbehind (and lookahead for the '-'), so I would only actually match the Vote, but acknowledge the existance of the rest of the prompt. That didn't work very well, mostly because I've never done any lookarounds before.
Also, apparently Hyperlink() only echoes the hyperlink to the output, it doesn't actually replace text with the hyperlink. I guess this means I would have to omit the prompt altogether, and re-echo it with the hyperlink, right? Seems kind of painful...
This is the trigger I'm using for the prompt. This works, at least. It's rather complex because I want to match any configuration of the prompt (it can be off, it can list only health and mana, etc)
^(?:\d+h, )?(?:\d+m,? )?(?:\d+e,? )?(?:\d+w,? )?c?e?x?k?d?b?@?\s?(?:Vote)?-\s?$
That Vote thing at the end is what I want to hyperlink. Help? :|
Also, apparently Hyperlink() only echoes the hyperlink to the output, it doesn't actually replace text with the hyperlink. I guess this means I would have to omit the prompt altogether, and re-echo it with the hyperlink, right? Seems kind of painful...
This is the trigger I'm using for the prompt. This works, at least. It's rather complex because I want to match any configuration of the prompt (it can be off, it can list only health and mana, etc)
^(?:\d+h, )?(?:\d+m,? )?(?:\d+e,? )?(?:\d+w,? )?c?e?x?k?d?b?@?\s?(?:Vote)?-\s?$
That Vote thing at the end is what I want to hyperlink. Help? :|