Thank you for being a valued part of the CNET community. As of December 1, 2020, the forums are in read-only format. In early 2021, CNET Forums will no longer be available. We are grateful for the participation and advice you have provided to one another over the years.

Thanks,

CNET Support

General discussion

Help with Word RegEx

Apr 12, 2010 3:14AM PDT

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