<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Thanks Dawn,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>That’s what I was looking for.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>To give an example of what I was thinking, with your help I can now do this:<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>my $str = "Stuffed animal 7878997! stuffing stuffy foo face";<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>my @matches = $str =~ /(stuff\S+)/gi;<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>for (@matches) {print "$_\n";}<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>and get this:<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>C:\Data\Perl\_Test>perl match.pl<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Stuffed<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>stuffing<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>stuffy<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>~~~~~~~~~~~~~~~~~~~~<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D'>Jim Marinelli<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> baltimore-pm-bounces+jmarinelli=netcraftsmen.net@pm.org [mailto:baltimore-pm-bounces+jmarinelli=netcraftsmen.net@pm.org] <b>On Behalf Of </b>Dawn Wallis<br><b>Sent:</b> Friday, March 23, 2012 1:32 PM<br><b>To:</b> baltimore-pm@pm.org<br><b>Subject:</b> [baltimorepm] checking in - DCBPW, April, RegEx question answered<o:p></o:p></span></p></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Hi Group,<br><br><b>Item 1 - Go to DCBPW on April 14, 2012</b><br>I've been staying very busy in my efforts to help organize the DCBPW event coming up on April 14, 2012. Hopefully you all have registered for this one day event by now! If not go to <a href="http://www.dcbpw.org">www.dcbpw.org</a> and sign up. <br><b><br>Item 2 - April's meeting and meeting space</b><br>Our April meeting is still TBD, and I might postpone it to May since DCBPW is in April. What are your thoughts on this? Would you like to still meet in April even if it is just socially? or would you like to have the option for a third Thursday meeting in April (like we do every month)? I'm still working on getting meeting space for our group, any suggestions are welcome.<br><b><br>Item 3 - Follow up from March's meeting -- "</b><i>capturing multiple matches in regex without loop</i>ing"<br>Earlier today I was talking with a friend who showed me an interesting, and sort of obvious solution to a question presented at our last meeting.<br><br>[paraphrasing]"if you are looking for every match in a string and using 'g' how do you capture all the results without knowing how many to expect?"<br><br>Many answers were posed from "I don't know" to "use a loop". But this is a simple solution that does not involve a loop for capturing purposes anyway: Use assignment.<br><br>See my example:<br><br>my $str = "Stuffed animal 7878997! stuffing stuffy foo face";<br>my @matches = $str =~/(stuff)/g;<br>print $#matches +1;  #+1 for human readable<br><br><br>As you can see there is always more than one way to do it! This is just an example showing how many matches occur, but you can see from this one example much more could build from this.<br><br>Well don't be strangers. Reply with more tips or questions and your thoughts about meeting in April!!!<br><br><br>Thanks!<br><br>Dawn<br>--<br>Dawn Wallis<br>Baltimore.pm<br>directly <a href="mailto:wallisds@gmail.com">wallisds@gmail.com</a><o:p></o:p></p></div></body></html>