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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T10:50:52+00:00 2026-06-04T10:50:52+00:00

I think this is fairly simple. I’d like to only return the string values

  • 0

I think this is fairly simple. I’d like to only return the string values that contact leading numbers in my query results.

For example:

003 - Preliminary Examination Plan  
005 - Coordination  
1000a - Balance sheet
Advertising  
Amortization  
Partnerships

Would like to get:

003 - Preliminary Examination Plan  
005 - Coordination  
1000a - Balance sheet

This code gave me zero results. How do I check if the leading numbers contain digits and return the rest of string?

select distinct AIssue
from SQLIssue
where regexp_like( AIssue, '^[[:digit:]]*$' )
order by AIssue
  • 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-04T10:50:53+00:00Added an answer on June 4, 2026 at 10:50 am

    Your current regex reqiures the string to consist entirely of digits. Try the following:

    where regexp_like( AIssue, '^[[:digit:]].*$' )
    

    (note the added dot).

    To elaborate, . matches any character, and * means “repeat the previous term zero or more times”.

    Thus, the original regex says “zero or more digits”, whereas the above regex says “a digit followed by zero or more of any characters.

    edit: A shorter version of the above regex has been suggested by @mellamokb in the comments:

    where regexp_like( AIssue, '^[[:digit:]]' )
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This seems like a fairly obvious question, but I haven't been able to think
This seems like it should be fairly simple, but for some reason I can't
I'm trying to do something that I think should be fairly simple but I've
OK, I think this will be fairly simple, but my numpy-fu is not quite
I think this question is probably fairly simple, but I've been searching around and
fairly simple question I think that I couldn't find the answer to in the
I think this is fairly simple, but I'm new to Django and I can't
I have a fairly simple one-to-many type join in a MySQL query. In this
I have some fairly simple state needs (for now). I think I would like
I think this is a fairly common question: how to put my business logic

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.