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

  • Home
  • SEARCH
  • 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 4037644
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T12:22:26+00:00 2026-05-20T12:22:26+00:00

I am trying to extract telephone word numbers from free text. The general format

  • 0

I am trying to extract telephone word numbers from free text.
The general format of the word number is ‘0800’ followed by at least 6 alphanumeric characters.
If there is more than one word required to get at least 6 alphanumeric charaters then return the full words.

examples I have:
‘PH 0800 OASIS CLEARWATER’ – return ‘0800 OASIS CLEARWATER’
‘Freephone 0800 RaceRock TM’ – return ‘0800 RaceRock’
‘Phone: 0800 7 5555 7’ – return ‘0800 7 5555 7’

I am using oracle 10.2.0.3 (10g)

cheers

  • 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-20T12:22:26+00:00Added an answer on May 20, 2026 at 12:22 pm

    The following regex should work:

    (0800(\s*[a-zA-Z0-9]){6}[a-zA-Z0-9]*)
    

    It first matches 0800, then 6 alfanumeric characters, before each character you can have a number of spaces. After the sixth character you match additional characters, to get the whole word.

    Be sure not to use ^ or $ as you obviously want it to be possible to have strings in front of it, and after it.

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

Sidebar

Related Questions

I'm trying to extract all of the links to image files from a text
I am trying to extract the number of specials unlocked at a venue from
I have been trying to extract hours, seconds and minutes from an input text
I'm trying to extract strings from a text that features two different types of
I'm trying to extract the version number from a AssemblyInfo.cs file! And I'm trying
I am trying to extract text from body downloaded via ajax. I can not
I am trying to extract a word that matches a specific pattern from various
I'm trying to extract the time from the following strings using regex Free concert
I'm trying to extract email addresses from plain text transcripts of emails. I've cobbled
I am trying to extract phone number in java from the given String i.e.

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.