-1

I need to style any element that has the class or ID that has the following pattern:

hide_this + any_string_of_number

example: hide_this364526452 hide_this0090890

Any tip? Thanks!

0

1 Answer 1

0

hide_this\d+

This regex will match hide_this and then between one and unlimited digits.

Demo

Sign up to request clarification or add additional context in comments.

2 Comments

Thanks Nick. But how would this implementable in CSS? I have many elements with this class or ID. hide_this364526452
Have a look at this question, it describes how to use regex-esque content in a css selector.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.