EDIT: I believe the solution I'm looking for here is with recursion.
With regards to this Issue with RegEx Lookaround where new lines are included
I am trying to find a way to search a section of text for a header, and then select a section of the header, as well as a specific part of the section below it, which also requires a small conditional search.
The text format is like this:
Private Sub NAV_VE124_Click()
'Open the picture in its description field
Call ShowPic(Me.NAV_VE124.Description)
End Sub
And I would like to select VE124 Open the picture in its description field
.
Or, more generally, I want everything between NAV_
and Click()
, and everything from the '
to the Call
(not the line break as some of the descriptions have more than one line of text).
Any thoughts or help would be hugely appreciated. I have about 20000 of these to catalog so I'm kind of at a loss for how else to do it.