Style one word from a sentence <p>Hello I have This sentence:</p> <p>"Starbucks open-hours are from 7-17. Please choose another time!"</p> <p>I want to make the numbers "7-17" bold and red so that users can see it easier.</p> <p>This whole sentence is stored in a @Umbraco.GetDictionaryValue:</p> <p>@Umbraco.GetDictionaryValue("BookingStep1_ClosedPickup") which then in view shows the sentence above.</p> <p>How can I target the numbers only?</p> <pre><code> &lt;div class="coffees"&gt; &lt;div class="message"&gt; {{if (!data.location.matchHoursPickup) { }} {{if (data.location.closedPickup) { }} @Umbraco.GetDictionaryValue("BookingStep1_ClosedPickup") {{ }else{ }} {{= data.closedPickupMsg }} {{ } }} {{ }else{ }} {{ if (data.location.closedDelivery){ }} @Umbraco.GetDictionaryValue("BookingStep1_ClosedDelivery") {{ }else{ }} {{= data.closedDeliveryMsg }} {{ } }} {{ } }} &lt;/div&gt; &lt;/div&gt; </code></pre>