General discussion

Help with Word RegEx

Hello,

I have text like this:

###4er Teaser####
##1
#Headline#
About Fujifilm
#Text#
At Fujifilm we are working in many areas ? from digital cameras to motion picture film, and computer media to medical imaging ? to bring you better products, solve difficult problems and protect our planet's environment.

##2
#Headline#
Digital Cameras
#Text#
Get the latest information about the FinePix range of digital cameras.
#Link#
Learn about Digital Cameras

##3
#Headline#

I need to remove all lines of text that begin with # or are between like #Headline#.

Also there are lines of text that begin with multiple mesh chars like

##3

I need them removed to in my word doc. But NOT the text between the lines.

#Headline#
Digital Cameras
#Text#

"Digital Cameras" needs to stay.

How would the RegEx look like, or multiple RegExs?

Regards,
Mirza

Discussion is locked
Follow
Reply to: Help with Word RegEx
PLEASE NOTE: Do not post advertisements, offensive materials, profanity, or personal attacks. Please remember to be considerate of other members. If you are new to the CNET Forums, please read our CNET Forums FAQ. All submitted content is subject to our Terms of Use.
Reporting: Help with Word RegEx
This post has been flagged and will be reviewed by our staff. Thank you for helping us maintain CNET's great community.
Sorry, there was a problem flagging this post. Please try again now or at a later time.
If you believe this post is offensive or violates the CNET Forums' Usage policies, you can report it below (this will not automatically remove the post). Once reported, our moderators will be notified and the post will be reviewed.
Comments

CNET Forums

Forum Info