#Positonal Messages Notification

1 messages · Page 1 of 1 (latest)

pure glen
pale anchor
#

Trigger:

(?i)§r§9Party §8> (?:§.\[[^\]]+\])?(§.\w+)(?:§.)+: §r(?:at|in|inside) (.+?)§r

Display Text:

%%1%%§f: %%2%%

I was bored and tried to make it apply the rank color but without the [rank] (I'm not gonna test this in-game)

pure glen
# pale anchor Trigger: ``` (?i)§r§9Party §8> (?:§.\[[^\]]+\])?(§.\w+)(?:§.)+: §r(?:at|in|insid...

this seems to work in regex 101 based on the same samples I used for the first one to only capture the rank's color code and not the rank itself

Regex: (?i)§r§9Party §8> (.+?)(?:\[[^]]*?])? ?(\w{1,16})§f: §r(?:at|in|inside) (.+?)§r

Display text: %%1%%%%2%%§f: %%3%%

https://regex101.com/r/rwyyVa/2

regex101

Regular expression tester with syntax highlighting, explanation, cheat sheet for PHP/PCRE, Python, GO, JavaScript, Java, C#/.NET, Rust.

pale anchor
#

Oh damn the color doesn't get put again after the rank? ig I misremembered

pale anchor
#

yours breaks without a rank so this is the final one I think? (Also swapped back to \w+ cause I like it better)

Regex: (?i)§r§9Party §8> ((?:§.)+)(?:\[[^]]*?] )?(\w+)(?:§.)+: §r(?:at|in|inside) (.+?)§r

Display text: %%1%%%%2%%§f: %%3%%
#

(I did (?:§.)+ cause hypixel loves to put multiple color codes sometimes)

pure glen
pale anchor
pure glen
pale anchor
#

tbh I don't know/remember how to specifically not match a text

#

I think this works, just don't know about excluding the name

pure glen
#

Maybe smth like this
(?i)§r§9Party §8> ((?:§.)+)(?:[[^]]*?] )?(?!(?:%%MC_IGN%%)\b)(\w+)(?:§.)+: §r(?:at|in|inside) (.+?)§r

pale anchor
#

Final (I think)

Trigger:

§r§9Party §8> ((?:§.)+)(?:\[[^]]+?] )?(?!(?:%%MC_IGN%%)\b)(\w+)(?:§.)+: §r(?i)(?:at|in|inside) (.+?)§r

Display Text:

%%1%%%%2%%§f: %%3%%
#

(only changed the *? to +? for the rank text, since there's always gonna be something inside it)