<?xml version="1.0" encoding="windows-1252"?>
<node id="1007113" title="Re: pick a word contaning reg-ex" created="2012-12-04 11:19:21" updated="2012-12-04 11:19:21">
<type id="11">
note</type>
<author id="965102">
Kenosis</author>
<data>
<field name="doctext">
&lt;p&gt;And another option:&lt;/p&gt;
&lt;c&gt;
use Modern::Perl;

while (&lt;DATA&gt;) {
	say $1 while /(\S+!)/g;
}

__DATA__
Mary had a little lamb! ,
whose fleece! was white! as snow.

And everywhere! that Mary went,
the lamb was sure! to go.
&lt;/c&gt;
&lt;p&gt;Output:&lt;/p&gt;
&lt;c&gt;
lamb!
fleece!
white!
everywhere!
sure!
&lt;/c&gt;</field>
<field name="root_node">
1007086</field>
<field name="parent_node">
1007086</field>
</data>
</node>
