I am trying to get a regex to extract the "Some" and "more text" between the para elements below in a single pass for style attribute of heading 2

<para font-size="12" font-family="Arial" style="heading 2">Some<anchor type="bkmrk"/>more text-</para>

<para font-size="12" font-family="Arial" style="heading 2"><inline caps="false">Some text</inline>more text</para>

Tried something like this for first bit but grabbing the anchor tag with the text.

|<para(.*)style=\"heading 2\"">(([a-zA-Z0-9/-/_/&\s]+)?)([<anchor type="bkmrk" name="[a-zA-Z0-9/_]+"/>])?(.*)</para>|

Help much appreciated.
Thanx


-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to