<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://regexblogs.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Construction Advice</title><link>http://regexblogs.com/forums/68/ShowForum.aspx</link><description>&lt;P&gt;Find help building expressions to suit your needs. Consult the &lt;A href="http://regexlib.com"&gt;Regular Expression Library&lt;/A&gt; to find many pre-built expressions, and add your own once you've solved your construction problem in our forum.&lt;/P&gt;</description><dc:language>en</dc:language><generator>CommunityServer 2.1 (Build: 60809.935)</generator><item><title>Re: Capture the first word in a string?</title><link>http://regexblogs.com/forums/thread/62116.aspx</link><pubDate>Tue, 23 Mar 2010 21:32:05 GMT</pubDate><guid isPermaLink="false">d291b357-6366-4006-9008-4266c301325a:62116</guid><dc:creator>jemo</dc:creator><slash:comments>0</slash:comments><comments>http://regexblogs.com/forums/thread/62116.aspx</comments><wfw:commentRss>http://regexblogs.com/forums/commentrss.aspx?SectionID=68&amp;PostID=62116</wfw:commentRss><description>&lt;p&gt;Peadarin, thank you. you solved my issues with your guidance.&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I will keep my post with language related questions. :(&amp;nbsp;&lt;/p&gt;&lt;p&gt;PD: Email subscription did not work for me.&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Capture the first word in a string?</title><link>http://regexblogs.com/forums/thread/60422.aspx</link><pubDate>Sat, 06 Mar 2010 20:48:36 GMT</pubDate><guid isPermaLink="false">d291b357-6366-4006-9008-4266c301325a:60422</guid><dc:creator>Peadarin</dc:creator><slash:comments>0</slash:comments><comments>http://regexblogs.com/forums/thread/60422.aspx</comments><wfw:commentRss>http://regexblogs.com/forums/commentrss.aspx?SectionID=68&amp;PostID=60422</wfw:commentRss><description>&lt;p&gt;&lt;font face="Helvetica"&gt;(by reading the positing guidelines, you would know that it is extremely complex to help when one example is provided)&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Anchor the first word to the beginning of the buffer&lt;/p&gt;&lt;p&gt;&amp;acute;/^&lt;span style="font-family:'Lucida Grande', Helvetica, sans-serif;white-space:pre;font-size:12px;" class="Apple-style-span"&gt;[A-Z]{4}\b/&lt;font size="2" face="Arial"&gt;&amp;acute;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style="font-family:'Lucida Grande', Helvetica, sans-serif;white-space:pre;font-size:12px;" class="Apple-style-span"&gt;&lt;p&gt;&lt;span style="font-family:'Lucida Grande', Helvetica, sans-serif;white-space:pre;font-size:12px;" class="Apple-style-span"&gt;This will not select anything else that the first word at the very beginning of the buffer, if it exists&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:'Lucida Grande', Helvetica, sans-serif;white-space:pre;font-size:12px;" class="Apple-style-span"&gt;If there are spaces, tabs, leading \n\r, any combination of the above,&amp;nbsp;between the beginning of the buffer and the word&amp;nbsp;you want to select,&amp;nbsp;use&amp;nbsp;\s&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;span style="font-family:'Lucida Grande', Helvetica, sans-serif;white-space:pre;font-size:12px;" class="Apple-style-span"&gt;If there are spaces, tabs, leading \n\r, any combination of the above,&amp;nbsp;between the beginning of the buffer and the word&amp;nbsp;you want to select,&amp;nbsp;use&amp;nbsp;\s&lt;/span&gt;&lt;span style="font-family:'Lucida Grande', Helvetica, sans-serif;white-space:pre;font-size:12px;" class="Apple-style-span"&gt;&lt;p&gt;&amp;acute;/^\s*&lt;span style="font-family:'Lucida Grande', Helvetica, sans-serif;white-space:pre;font-size:12px;" class="Apple-style-span"&gt;[A-Z]{4}\b/&amp;acute;&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;p&gt;&lt;span style="font-family:'Lucida Grande', Helvetica, sans-serif;white-space:pre;font-size:12px;" class="Apple-style-span"&gt;Does it solve your problem ?&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:'Lucida Grande', Helvetica, sans-serif;white-space:pre;font-size:12px;" class="Apple-style-span"&gt;&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Capture the first word in a string?</title><link>http://regexblogs.com/forums/thread/60401.aspx</link><pubDate>Fri, 05 Mar 2010 11:24:00 GMT</pubDate><guid isPermaLink="false">d291b357-6366-4006-9008-4266c301325a:60401</guid><dc:creator>jemo</dc:creator><slash:comments>0</slash:comments><comments>http://regexblogs.com/forums/thread/60401.aspx</comments><wfw:commentRss>http://regexblogs.com/forums/commentrss.aspx?SectionID=68&amp;PostID=60401</wfw:commentRss><description>&lt;p&gt;Helllo,&amp;nbsp;&lt;/p&gt;&lt;p&gt;This is for either java, js, or a posix not sure where I will end up developing it. &lt;/p&gt;&lt;p&gt;I am currently testing js with the current regex: &amp;acute;/&lt;span style="font-family:'Lucida Grande', Helvetica, sans-serif;font-size:12px;white-space:pre;" class="Apple-style-span"&gt;(\b[A-Z]{4}\b)/&amp;acute; the string is as follows: &amp;quot;&lt;span style="white-space:pre-wrap;" class="Apple-style-span"&gt;EIDW 050900Z 26006KT 240V310 0300 R16/0450N R28/0600V0800U R10/0600V0800U FZFG SCT001 BKN003 M00/M00 Q1033 BECMG 1200&amp;quot; &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;Currently I want to extract only the first word with 4 capital characters, when I test I get hits on &amp;quot;EIDW&amp;quot; &amp;lt;--- this is the text I need, but also &amp;quot;FZFG&amp;quot;. &amp;nbsp;What am I missing?&lt;/p&gt;&lt;p&gt;I appreciate your help.&lt;/p&gt;&lt;p&gt;Regards, &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Jemo&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>