[oXygen-user] Regular Expression That Matches Across Newlines? (Solved)
Eliot Kimber
Wed Mar 26 15:12:24 CDT 2008
Eliot Kimber wrote:
> Is the following possible using a regex search and replace?
>
> I have data that looks like this:
>
> 1. Some text?
> blah
> blah
> 2. Some more text
> second line?
> blah
> blah
>
> What I want to do is match on everything from the start of lines
> starting with "[0-9]+\." through the "?", Capturing the text between the
> initial "." and the "?".
>
> Is this possible with Oxygen? I can't figure it out.
Of course I immediately worked it out by trying to do something else:
^[0-9]([^\n\?]+)(\n)?([^\?]+)\?$
This appears to correctly match one or two lines starting with 1. and
ending with "?".
Cheers,
Eliot
--
Eliot Kimber
Senior Solutions Architect
"Bringing Strategy, Content, and Technology Together"
Main: 610.631.6770
www.reallysi.com
www.rsuitecms.com
More information about the oXygen-user
mailing list