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 7852283
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T19:23:02+00:00 2026-06-02T19:23:02+00:00

I require regular expression to match exactly 3 or 2 characters after decimal point,

  • 0

I require regular expression to match exactly 3 or 2 characters after decimal point, so that it validates http://www.xyz.com and not xyz.Complete

  • 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-06-02T19:23:03+00:00Added an answer on June 2, 2026 at 7:23 pm

    I think what you want is \b

    I can’t think of a case that’s not reasonably covered by using the word-boundary assertion \b any of the other answers need only have \b at the end (if it’s always .com, then you’d use .com\b which means essentially a literal dot (.) character followed by com, where whatever follows is something other than a letter, number or underscore. It’s a zero-width assertion, which means it will not capture anything. To allow a .net or .edu as well, you would use \.(com|edu|net)\b

    The \b assertion is supported in most tools and languages using regexes, but if you need to get more precise (for instance, you might want to allow an underscore after com), your tool or language compiler may support “lookaheads” which are also zero-width assertions. (in the instance mentioned just above, you would use something like \.(com|net|edu|org|mil|museum)(?![a-zA-Z0-9]) which would prohibit numbers and uppercase or lowercase letters)

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

Sidebar

Related Questions

I require a regular expression that selects a column from table, if it starts
I wonder why my regular expression will not work, I require to achieve the
I'm not exactly a regex guru, so I have some difficulty finding a regular
i need a regular expression that checks if the multiline textbox has been left
I am trying to add wild characters to my current alphanumeric only regular expression
I give up. I need a (PHP) regular expression that matches only 5 digit
I need regular expression that matches a pattern or is empty. Right now I
I have a regular expression for a framework to convert host.com/controller/method in to host.com/index.php?controller/method
Is it possible/practical to build a single regular expression that matches hierarchical data? For
I'm trying to match a regular expression in Perl. My code looks like the

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.