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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T02:19:46+00:00 2026-06-13T02:19:46+00:00

I am trying to write the pattern matcher for the below string show int

  • 0

I am trying to write the pattern matcher for the below string

show int sh 1/1/06
SHDSL 1/1/6 
Description                      3599979
Constellation (bits/baud)        30

I need to get the value of ‘show int sh’ and ‘SHDSL’ and ‘Description’ and so on…

It should shrink the white spaces and get the value of respective strings.

Can any one guide me to write the regex pattern for the same.?

  • 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-13T02:19:47+00:00Added an answer on June 13, 2026 at 2:19 am

    You can use this regex in multiline mode

    ^show int sh\s*(.*)$

    ^show int sh\s*checks for show int sh at the start ^ of the line before the required data

    \s* matches 0 or more space till the first non space character

    (.*)$ captures the required value till end of the line$ in group 1

    So here are all the regex’s

    Use multiline mode

    ^show int sh\s*(.*)$

    ^SHDSL\s*(.*)$

    ^Description\s*(.*)$

    ^Constellation\s*(.*)$

    OR a single regex

    ^((show int sh|SHDSL|Description|Constellation)\s*).*$

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

Sidebar

Related Questions

I am trying to write regular expression for this pattern: String word=113(112,9); It should
I am trying to write something like this: Pattern p = Pattern.compile(Mar\\w); Matcher m
Possible Duplicate: byte[] array pattern search I am trying to write a simple compression
I'm trying to write a simple encryption algo that is a randomized shift pattern
I am trying to write a pattern in Java to match against Java import
I am trying to write a generic one-size-fits-most repository pattern template class for an
I'm trying to write a regex pattern that will find numbers with two leading
I am trying to write a redirect in apache for URL of pattern: https://server.com
I'm trying to write a regular expression to mach an IRC PRIVMSG string. It
Trying to write a regex matcher for roman numerals. In sed (which I think

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.