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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T02:35:54+00:00 2026-05-17T02:35:54+00:00

I have these asset ID’s in a CMS and I need to update them

  • 0

I have these asset ID’s in a CMS and I need to update them all with regular expresssions.

They are 8 or 9 characters in length and made of all numeric characters (0-9). Is there a way to match only 8 or 9 numbers? I’m afraid I may not be using the right keywords in my google search to figure this out and I haven’t found anything in my cheat sheets or books yet so I’m hoping someone here might be able to point me in the right direction.

seth

  • 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-17T02:35:55+00:00Added an answer on May 17, 2026 at 2:35 am

    Most regex flavors allow you to specify the number of characters to match as such (I use a PCRE example):

    /^[0-9]{8,9}$/
    

    The {8,9} indicates a minimum of 8 digits to match and a maximum of 9 digits to match. The ^ and $ ensure only entire strings of 8 or 9 digits are matched, and not just substrings.

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

Sidebar

Related Questions

I have these two table with some data sample in them. I would like
Given these business rules: Users have 0 or more accounts and all accounts are
I have these three tables: Table 1 : InvoiceId InvoiceNumber CompanyId ------------------------------------------------- 3 1
I have these data from a table. Example, I have table for points named
I have these 3 if statements which depending on the value in the variable
I have these two lines in my GET action method: var model = new
I have these two models: class Service(MelosModel): performer = models.ForeignKey(Performer) event = models.ForeignKey('Event') composition
I have these mysql table, ------------------------------------------------------------------- | products_id | date_added | date_modified | |
I have these declarations in C++: struct objectStruct; int positionMemory = getPosition(); short size
I have these two lines of code: var[1] =var[2].multiply(var[3]).multiply(var[4]).multiply(new BigDecimal(Math.sin(var[5].doubleValue()))); var[5] =new BigDecimal(Math.asin(var[1].divide(var[2],precision,BigDecimal.ROUND_HALF_UP).divide(var[3],precision,BigDecimal.ROUND_HALF_UP).divide(var[4],precision,BigDecimal.ROUND_HALF_UP).doubleValue())); I

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.