Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

EXtracting from a Pattern

Status
Not open for further replies.

Jesus4u

Programmer
Feb 15, 2001
110
0
0
US
How can I find all occurences of a string formatted like WE SLATE in bold font and then extract all the sentences beneath WE SLATE and then repeat the process looking for the same pattern again?

Thanks and help... :eek:

Exams Passed: 70-152, 70-175, 70-176, 70-100
 
sentences? are you using word?

use the Like operator

if "String" like "Pattern then


Peace! [peace]

Mike

Never say Never!!!
Nothing is impossible!!!
 
yes in Word.

Exams Passed: 70-152, 70-175, 70-176, 70-100
 
And what if WE SLATE is the First phrase in the doc? Do you want it to delete everything else?

I'll ask differently:

Is there a stopping point or should the code just delete everything underneath WE SLATE?



Peace! [peace]

Mike

Never say Never!!!
Nothing is impossible!!!
 
What exactly are you trying to do?



Peace! [peace]

Mike

Never say Never!!!
Nothing is impossible!!!
 
THIS IS MY HEADER
This is the content that I want to extract excluding the header above.

THIS IS MY SECOND HEADER
This is more content that I want to extract excluding the second header above.

Thanks...

Exams Passed: 70-152, 70-175, 70-176, 70-100
 
So, let me see if I understand you correctly.

You want to clear the header of your document of everything except the header "Title"?



Peace! [peace]

Mike

Never say Never!!!
Nothing is impossible!!!
 
yes

Exams Passed: 70-152, 70-175, 70-176, 70-100
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top