VBA and regular expression to search for ranges of text



Hi,
I'd be very grateful for help with the following.

I have a text file open in Word. I need an example of how to use a
regular expression to search for ranges of text that begin with
'\begin{figure}' and end with '\end{figure}' inclusive.
\begin{figure}
Any text can go here etc etc etc
\end{figure}

Once this is found, I would like to convert it to a Word Range object
and then continue the regular expression search from the next point in
the document.

Thanks in advance,

Enda

.



Relevant Pages

  • Re: Boolean search in Dialog?
    ... >> How would you do a regular expression search that was equivalent to the ... > Dialog's inbuilt Help covers this topic fairly well, ... any search engine will quickly lead you to them. ... wyzwyz posted the Regular Expression ...
    (news.software.readers)
  • Re: tips for writing regular expression interpreter/compiler?
    ... Derek Haas wrote: ... > I am trying to implement a small subset of the regular expression ... > languages found in perl/python/et cetera (maybe just Kleene closure ... title = {Regular Expression Search Algorithm}, ...
    (comp.compilers)