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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T03:19:25+00:00 2026-06-18T03:19:25+00:00

I have regexp pattern like this: ^[a-zA-Z0-9]+\s(INV|FINAL)\s([0,1]?\d{1}\s(([0-2]?\d{1})|([3][0,1]{1}))\s(([1]{1}[9]{1}[9]{1}\d{1})|([2-9]{1}\d{3})))(\s{1})\d+$ This pattern should validate if the document

  • 0

I have regexp pattern like this:

^[a-zA-Z0-9]+\s(INV|FINAL)\s([0,1]?\d{1}\s(([0-2]?\d{1})|([3][0,1]{1}))\s(([1]{1}[9]{1}[9]{1}\d{1})|([2-9]{1}\d{3})))(\s{1})\d+$

This pattern should validate if the document name is correct
Document name like this should match this pattern:

1207181 FINAL 12 13 12 1533

At the beginning – just numbers, it’s like id.

Next one space.

Next INV or FINAL word.

Next date in format dd mm yy.

Next some digits.

Can anybody help me to resolve this?

  • 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-18T03:19:26+00:00Added an answer on June 18, 2026 at 3:19 am

    You’re searching for:

    ^(\d+)\s(INV|FINAL)\s(0[1-9]|[12]\d|3[01])\s(0[1-9]|1[0-2])\s(\d{2})\s(\d+)$
    

    Explanation:

    ^                      start at the beginning of the string
    (\d+)                  capture any digit
    \s                     one whitespace
    (INV|FINAL)            captrue INV or FINAL
    0[1-9]                 a 0 and a digit from 1 to 9
    [12]\d                 a 1 or a 2 and a digit
    3[01]                  a 3 and a 0 or a 1
    (0[1-9]|[1-2]\d|3[01]) capture a digit from 01 to 31
    (0[1-9]|1[0-2])        capture a 0 and a digit from 1 to 9 or a 1 and a digit from 0 to 2 | so capture a digit from 01 to 12
    (\d{2})                capture two digits
    $                      stop at the end of the string
    

    It won’t match 1207181 FINAL 12 13 12 1533 because of the 13.

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

Sidebar

Related Questions

I have a tag like this <order>foo,bar,goo,doo,woo</order> that I need to validate with an
I have this input : {http://sdfgdf.dfg.dfg.dfg#value1 : http://sdfgdf.dfg.dfg.dfg#value2} and i'd like to match only
I have a RegExp Tester extension in chrome. Running pattern [-,] against search text
I need some help about RegExp in AS3. I have a simple pattern :
I have got this regex pattern that works with my current apache log format:
I have a regexp to validate file names. Here is it: /[0-9a-zA-Z\^\&\'\@\{\}\[\]\,\$\=\!\-\#\(\)\.\%\+\~\_ ]+$/ It
I have this regexp: $f =~ s/[.\W_]//g; which keeps just the numbers, letters and
let's say I have two regexp's, /eat (apple|pear)/ /I like/ and text I like
Hi I'm having some problems with php recurring regexp. I have strings like {{if(x=y)?
Having this Pattern for a regular expression : Pattern p = Pattern.compile([^\\.](?s)executeRule\\(\\s*?(.+?),\\s*?('.+?'),\\s*(\\[.+?\\]\\s*\\);)); I have

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.