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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T08:50:48+00:00 2026-06-08T08:50:48+00:00

I need to be able to determine whether or not a particular piece of

  • 0

I need to be able to determine whether or not a particular piece of text inside a text field on my form is a ProductId.

I think I may (regrettably) need Regex for this.

Anyway, there could be any number of possible things inside a search query, and I need to determine the likeliness of something inside the field being a productid.

All our product Id’s are of the following format:

AA8678NY

ONO23476

OPI765.0987

And there doesn’t seem to be any common format (there are over 400, 000 product id’s in the database).

So basically, I guess what I’m trying to say is that any product id can be thought of as starting with either 1 or more numbers, or letters, followed by either 1 dot or 1 or more numbers or letters, and ending with either 1 or more letters or numbers. – And sometimes it’s just a bunch of numbers.

Can we achieve something like this without regex?

Any help at all is appreciated.

  • 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-08T08:50:51+00:00Added an answer on June 8, 2026 at 8:50 am

    You can, but why would you?
    The Regex is actually very simple:

    [A-Z1-9]+|([A-Z1-9]+\.[A-Z1-9]+)
    

    If there is a known minimum length, replace + with {n,}

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

Sidebar

Related Questions

I need to be able to determine from the DataTable returned by DbConnection.GetSchema() whether
Working on a project and need to be able to determine whether the O/S
I need to be able to determine at run time what compilation options were
So, I have a .pdf file and I need to be able to determine
I have the need to relatively quickly be able to determine if a set
I need OCR library(preferably in Java), which will be able to determine digit visualized
How do I determine whether or not the accelerometer would report a roll of
I need to be able to determine when ContainsFocus changes on a Control (specifically
I need to be able to determine a systems maximum integer in Ruby. Anybody
I need to be able to programmatically determine the doctype of the current page

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.