Custom Filter Regex Question

Hi, I want to hide an element on a webpage, but a portion of that changes every time I reload the page. It looks something like this:

example.com##class_123456 > element

The bit with the numbers changes every time. I would like to replace this with a regex to match every numeric string of any length. I tried to figure it out myself but couldn't get it to work.

Any help is appreciated, thanks :)

3 points · 2 comments · view on lemmy.world

2 Comments

ShunkW@lemmy.world · 1 pts · 2y (1 reply)

You should be able to use the pattern below. The \d+ means one or more digits.

class_\d+
cr3w@lemmy.dbzer0.com · 1 pts · 2y

thanks, but sadly this didn't do the trick