When questions like this come up in the Apache subforum, the answer generally goes something like:
Never mind the code, and never mind what parts work or don't work. Start by explaining
in English what you want to achieve. Then we can hammer out the code to make that happen.
So far we haven't got to the "what you want to achieve" part.
i want to highlight the numbers
Applying styling-- whether it's underlining, bigger size, boldface, different font, what have you-- to numerals would have no effect except to make numerals more visible
to human eyeballs. But what purpose does that serve? In general when people ask about differentiating some type of text, it's because they then want to
do something with the text.
If it's your own pages, it would be trivial to write code like
.numbers {font-size: 200%; font-family: sans-serif; color: red; text-decoration: underline;}
...
<p><span class = "numbers">4</span> score and <span class = "numbers">7</span> years ago</p>
et cetera,
:: pause to swear at Forums software which inexplicably thinks there's a [ red ] in there, and no it's got nothing to do with my made-up CSS ::
just by running the html through some process that picks out any occurrence of
(\.?\d([\d,.¼½¾]*[\d¼½¾])?)
(I tried to put in more fractions but Forums software, being resolutely 8859-1 or possibly 1252, didn't like them)
and wraps it in the selected style.
You can do it dynamically in javascript, or beforehand with the php-or-equivalent that generates the page, or simply in a text editor if you only need to tweak a few pages of hand-rolled html.