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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T10:14:29+00:00 2026-06-14T10:14:29+00:00

I am selecting from an oracle table (using sql) that contains the following values:

  • 0

I am selecting from an oracle table (using sql) that contains the following values:

ae0.32767  
bcm0.0  
em0.0  
ge-0/1/0.32767  
ge-7/1/0.100  
ge-7/1/0.32767  
lo0.0  
lsi.0  
pc-0/0/0.16383  
pc-1/0/0.16383  
pc-5/0/0.16383  
xe-0/0/0.838 

How do I extract values (using regexp) after and not including the decimal point.

For example:

32767  
0  
0  
32767  
100  
32767  
0  
0  
16383  
16383  
16383  
838  
  • 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-14T10:14:31+00:00Added an answer on June 14, 2026 at 10:14 am

    The regexp_substr function can be used to extract digits after a period at the end of a string. Here is an example:

     -- sample of data from your question
     SQL> with t1  as (
      2    select 'ae0.32767' as col from dual union all
      3    select 'bcm0.0'          from dual union all
      4    select 'em0.0'           from dual union all
      5    select 'ge-0/1/0.32767'  from dual union all
      6    select 'ge-7/1/0.100'    from dual union all
      7    select 'ge-7/1/0.32767'  from dual union all
      8    select 'lo0.0'           from dual union all
      9    select 'lsi.0'           from dual union all
     10    select 'pc-0/0/0.16383'  from dual union all
     11    select 'pc-1/0/0.16383'  from dual union all
     12    select 'pc-5/0/0.16383'  from dual union all
     13    select 'xe-0/0/0.838'    from dual
     14  )
     15  select regexp_substr(col, '(\.)([[:digit:]]+)$', 1,1,'i',2) res
     16    from t1
     17  ;
    
    RES
    --------------------------------------------------------
    32767
    0
    0
    32767
    100
    32767
    0
    0
    16383
    16383
    16383
    838
    
    12 rows selected
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm still new to SQL (Oracle).. Basically on a table I'm selecting from, there
I am migrating data from a Oracle on VMS that accesses data on SQL
I found this solution for selecting a random row from a table in Oracle.
In mysql i m selecting from a table shouts having a foreign key to
Basically I want to alter the boolean value selecting from the table: e.g.: SELECT
I'm selecting products from a database table. Currently the query is launched from Coldfusion,
Possible Duplicate: Selecting data from two different servers in SQL Server How can I
I have several tables that I am selecting data from. I am trying to
I have the following Oracle table: GAMES id_game int id_user int dt_game DATE Before
Dear SQL Gurus from Stack Overflow: Environment: Oracle I'm trying to understand why 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.