KogasaPls / notification-panel

A RuneLite Plugin Hub plugin. Displays RuneLite notifications in an overlay.
BSD 2-Clause "Simplified" License
1 stars 0 forks source link

Im confused on the regex #4

Open EliJ91 opened 11 months ago

EliJ91 commented 11 months ago

Can you show an example of 2 Regex that looks for the word "low" and 1 of them also look for "hitpoints" and the other looks for "prayer". Both have different colors.

EliJ91 commented 11 months ago

I figured it out using https://regex101.com/r/cO8lqs/2

for "low hitpoints" and "low prayer" the syntax is as follows:

.*low.prayer.*
.*low.hitpoints.*

The colors apply respectively per line and are separated by commas as follows:

#00FFF1,
#FF0000,

This means the 1st line that says "low prayer" will have the color #00FFF1 applied, and the following line will have the next color in the queue used.

fka310 commented 5 months ago

I figured it out using https://regex101.com/r/cO8lqs/2

for "low hitpoints" and "low prayer" the syntax is as follows:

.*low.prayer.*
.*low.hitpoints.*

The colors apply respectively per line and are separated by commas as follows:

#00FFF1,
#FF0000,

This means the 1st line that says "low prayer" will have the color #00FFF1 applied, and the following line will have the next color in the queue used.

I just copied the syntax he used in the example picture haha, but thanks!