I'm looking to filter numbers from a string, and make them bigger in one case, and hide them in the other. The best way, as I understood, would be to use a custom function via functions.php and probably Javascript. The string is using a unique div class.
Here's how it looks in HTML:
<div class="big-numbers">15th Amendment</div>
what I think would be a good result to work with in CSS later on:
<div class="big-numbers"><span>15</span>th Amendment</div>
I previously used a code to filter the first word, but I cannot use it here due to ordinal numbers, and not sure how can I filter just numbers.