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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T04:21:52+00:00 2026-06-12T04:21:52+00:00

I have a large text file that contains data in the following format: AUTHOR:

  • 0

I have a large text file that contains data in the following format:

AUTHOR: John_Doe
TITLE: This is a title
BASENAME: this_is_a_title

AUTHOR: Jill_Doe
TITLE: Another Title
BASENAME: another_title

AUTHOR: Jack
TITLE: Last Title
BASENAME: last_title

How do I find all of the underscores in the document but only on lines that begin with ‘BASENAME:’? I’ve tried lookbehinds and groupings but my limited regex knowledge just has me spinning in circles. Any thoughts? Thanks!

Edit: Sorry all, was away from my desk last night. Not sure what flavour of regex I’m using, it’s for an advanced search in Sublime Text 2. And to clarify, I’m trying to find the underscores on BASENAME lines so that I can change them to dashes. So I’m looking for a RegEx that will return the underscores only.

  • 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-12T04:21:53+00:00Added an answer on June 12, 2026 at 4:21 am

    I’d suggest ^BASENAME:[^_]*_.*$. This will find all such lines. Or do you want to find all underscores individually instead of the containing lines?

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

Sidebar

Related Questions

I have a large text file that contains multiple columns of data. I'm trying
I have a large text file ( data ) which has the following layout:
Am using vim and have a large text file that contains some html thrown
I have a large text file in the format of. english word: spanish equivalent
I have a text file that lists the names of a large number of
I have a directory named main that contains two files: a text file named
The scenario is the following. I have a plain text file which contains 2,000,000
I have this large XML file. There is a field that I want to
I have a large file that contains world countries/regions that I'm seperating into smaller
I have a large text file I am reading from and I need to

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.