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.