Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 614709
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T18:08:27+00:00 2026-05-13T18:08:27+00:00

How do I use CSS to define a text input area where digits and

  • 0

How do I use CSS to define a text input area where digits and non-digits are rendered with different formats (bold/italic/color)?

i.e.
345 dollar -> 345 dollar

Are there anything equivalent to Regular Expression Library fo regex for CSS?

Below are edited


I’m using the Seam framework, any alternatives to achieve this is also welcomed.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T18:08:27+00:00Added an answer on May 13, 2026 at 6:08 pm

    As svinto already says, this is definitely not possible. Not even, as far as I can see, using an advanced CSS tool like LESS.

    You will have to work around by putting the digit into a tag:

     <span>345</span> dollar
    

    you could of course automate that in a scripting language using Regexes, but I would recommend formatting the output properly instead of relying on such “post-processing”, which can break any time when the formatting changes, for example in a different language / locale.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i want to print a invoice and i use a print.css by media=print and
Im very new in php and try to use cookie but it is not
this will be quite difficult to explain. I hope I'm able to. I recently
I am building out an ajax enabled UI using webforms in asp.net. I really
A UI question: is there some consensus on the best (defined as the one
my actual problem is that .live() jQuery method is not working. This si the
I've been tasked with implementing a Date/Time selector for several areas of our web
OK a little background story. I am redesigning one of my old websites and
I'm using KML and the GGeoXml object to overlay some shapes on an embedded

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.