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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T21:25:48+00:00 2026-06-16T21:25:48+00:00

I am new to write regular expressions so please help. I want to match

  • 0

I am new to write regular expressions so please help.

I want to match this pattern (in Java):

"ABC",010,00,"123",0,"time","time",01,00, 10,    10,88,217," ",," "

the data I get will always be in the above format with 16 values. But the format will never change.

I am not looking for parsing as this can be parsed by java split too.
I will have large chunks of these data so want to capture the first 16 data points and match with this pattern to check if I received it correctly else ignore.

so far I have only tried this regex:

^(\".\"),.,(\".\"),.,(\".\"),(\".\"),.,.,.,.,.,.,(\".\"),.,(\".\")$

I am still in the process of building it.

I just need to match the pattern from a given pool. I take first 16data points and try to see if it matches this pattern else ignore.

Thanks!!

  • 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-16T21:25:49+00:00Added an answer on June 16, 2026 at 9:25 pm

    This should do the trick. Keep in mind that he doesn’t care what order the data points occur in (ie. they could all be strings or all numbers).

    (\s?("[\w\s]*"|\d*)\s?(,|$)){16}
    

    You can try it out here.

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

Sidebar

Related Questions

I'm new to Regular Expressions, please help me to write a new Regex. It
I am new to regular expressions and I am trying to write a pattern
I am pretty new to regular expressions. I want to write a regular expression
I'm new to regular expressions in Java (or any language, for that matter) and
I'm new to regular expressions, and I need to write a set of regular
I am new to regular expressions. I want to do multiline search. Here is
So I am new to regular expressions and I am attempting to write one
Very new to Fitnesse, I need to write a test using regular expressions to
I want to write a function validate() which will take some pattern or regular
I'm new to regular expressions, I've been able to write a few through trial

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.