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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T15:08:09+00:00 2026-05-30T15:08:09+00:00

I know regular expressions can be used, but am not able to find the

  • 0

I know regular expressions can be used, but am not able to find the right one. Also are there any built-in functions available that do this?

  • 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-30T15:08:11+00:00Added an answer on May 30, 2026 at 3:08 pm

    Given:

    bmake: stopped in /bb/cc/xx/yy/zz/aa
    

    This regex will pull the pathname:

    m%\s(/.*)%
    

    It looks for a white space character followed by a slash followed by anything. If you don’t have white space in your path names, then you can use the more restrictive:

    m%\s(/\S*)%
    

    If you’re sure you’ll always have one or more path components to the names, you can add more restrictions:

    m%\s(/\S+/\S*)%
    

    And so it goes on. The more you know about what can be valid in the path, the better your chances of matching only the file name. But note that a file name on Unix can contain any character except / (because it is the delimiter between sections of the path name) and \0, the NUL byte. Everything else – newlines, tabs, controls, etc – is fair game and could be part of a file name. Mercifully, most of them usually aren’t present in file names.

    Note that relative pathnames are even harder than absolute path names.

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

Sidebar

Related Questions

I know JavaScript regular expressions can ignore case for the entire match, but what
I don't know regular expression at all. Can anybody help me with one very
Regular Expressions are a complete void for me. I'm dealing with one right now
I know this could probably be done without regular expressions, but I'd rather make
I have 10 regular expressions and 1 one string which may or may not
As explained in Can regular expressions be used to match nested patterns? , it
I'm not too good with mod_rewrite or regular expressions, but I need to ultimately
^([0-9]*[1-9][0-9]*(\.[0-9]+)?|[0]+\.[0-9]*[1-9][0-9]*)$ I don't know regular expression well. Above regular expression does not allow input
I want to know the General formula for Writing Regular Expression? Any article?
I know this is kind of easy question but i cant seem to find

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.