<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://regexadvice.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://regexadvice.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>Parsing RTF for extracting the included formating style names</title><link>http://regexadvice.com/forums/thread/87397.aspx</link><pubDate>Fri, 03 May 2013 09:19:51 GMT</pubDate><guid isPermaLink="false">d291b357-6366-4006-9008-4266c301325a:87397</guid><dc:creator>regpet</dc:creator><slash:comments>1</slash:comments><comments>http://regexadvice.com/forums/thread/87397.aspx</comments><wfw:commentRss>http://regexadvice.com/forums/commentrss.aspx?SectionID=68&amp;PostID=87397</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;I need a pattern for extracting the names of the style which are included in the rtf. The syntax inside the rtf looks a foolowing (for a better explaining I&amp;#39;ve included some line breaks and indents.)&lt;br /&gt;&lt;/p&gt;&lt;p&gt;{\fonttbl&lt;br /&gt;&amp;nbsp; {\stylesheet&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {\*\cs10\additive Default Paragraph Font;}&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {\*\cs17\additive\sbasedon10 &lt;u&gt;&lt;b&gt;FormatCharacter&lt;/b&gt;&lt;/u&gt;;}&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {\s18\itap0\nowidctlpar\tx15876\f0\fs24\sbasedon0\snext0 &lt;u&gt;&lt;b&gt;FormatParagraph&lt;/b&gt;&lt;/u&gt;;}&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {\s18\itap0\nowidctlpar\tx15876\f0\fs24\sbasedon0\snext12 &lt;u&gt;&lt;b&gt;This is my Header 1&lt;/b&gt;&lt;/u&gt;;}&lt;br /&gt;&amp;nbsp; }&lt;br /&gt;&amp;nbsp; \deftab1134\paperw12240\paperh15840\margl20736\widowctrl\formshade\sectd&lt;br /&gt;} &lt;/p&gt;&lt;p&gt;My regex to find out the names and which works is: (?&amp;lt;=\\(snext|sbasedon)\d+\s)([\w\s]+)(?=;}). But how can I find out the stylesheet area, which begins with &amp;quot;{\stylesheet&amp;quot; and ends with the corresponding closing braket &amp;quot;}&amp;quot;?&lt;/p&gt;&lt;p&gt;Peter &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Parsing html input value attribute</title><link>http://regexadvice.com/forums/thread/87377.aspx</link><pubDate>Mon, 22 Apr 2013 09:02:24 GMT</pubDate><guid isPermaLink="false">d291b357-6366-4006-9008-4266c301325a:87377</guid><dc:creator>blarg</dc:creator><slash:comments>1</slash:comments><comments>http://regexadvice.com/forums/thread/87377.aspx</comments><wfw:commentRss>http://regexadvice.com/forums/commentrss.aspx?SectionID=68&amp;PostID=87377</wfw:commentRss><description>&lt;p&gt;HTML Input may or may not have value attribute which may or may not have actual value.

Sample subject string&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:10pt;"&gt;&amp;lt;input type=&amp;quot;text&amp;quot; tabindex=&amp;quot;1&amp;quot; name=&amp;quot;username&amp;quot; id=&amp;quot;username&amp;quot; size=&amp;quot;25&amp;quot; value=&amp;quot;&amp;quot; class=&amp;quot;inputbox autowidth&amp;quot; /&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;input type=&amp;quot;password&amp;quot; tabindex=&amp;quot;2&amp;quot; id=&amp;quot;password&amp;quot; name=&amp;quot;password&amp;quot; size=&amp;quot;25&amp;quot; class=&amp;quot;inputbox autowidth&amp;quot; /&amp;gt;&lt;/div&gt;&lt;div&gt;&amp;lt;input type=&amp;quot;checkbox&amp;quot; name=&amp;quot;autologin&amp;quot; id=&amp;quot;autologin&amp;quot; tabindex=&amp;quot;4&amp;quot; /&amp;gt;&lt;/div&gt;&lt;div&gt;&amp;lt;input type=&amp;quot;checkbox&amp;quot; name=&amp;quot;viewonline&amp;quot; id=&amp;quot;viewonline&amp;quot; tabindex=&amp;quot;5&amp;quot; /&amp;gt;&amp;nbsp;&lt;/div&gt;&lt;div&gt;&amp;lt;input type=&amp;quot;hidden&amp;quot; name=&amp;quot;sid&amp;quot; value=&amp;quot;9e549f682c5ef730de8e335340754ac0&amp;quot; /&amp;gt;&lt;/div&gt;&lt;div&gt;&amp;lt;input type=&amp;quot;submit&amp;quot; name=&amp;quot;login&amp;quot; tabindex=&amp;quot;6&amp;quot; value=&amp;quot;Login&amp;quot; class=&amp;quot;button1&amp;quot; /&amp;gt;&lt;/div&gt;&lt;div&gt;&amp;lt;input type=&amp;quot;hidden&amp;quot; name=&amp;quot;redirect&amp;quot; value=&amp;quot;./ucp.php?action=login&amp;amp;amp;sid=9e549f682c5ef730de8e335340754ac0&amp;quot; /&amp;gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&lt;/div&gt;&lt;div&gt;I want the value attribute parsed and returned whenever it&amp;#39;s available along with type and name attributes.&lt;/div&gt;&lt;div&gt;&amp;nbsp;&lt;/div&gt;&lt;div&gt;I searched forum and the results are not fulfilling my requirement. Hence I posted a new thread.&amp;nbsp;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&lt;/div&gt;&lt;div&gt;My regex is : &amp;lt;input type=\&amp;quot;([^\&amp;quot;]*?)\&amp;quot;.*?(?=name=\&amp;quot;([^\&amp;quot;]*?)\&amp;quot;)[^value]?(value=\&amp;quot;([^\&amp;quot;]*?)\&amp;quot;)?&lt;/div&gt;&lt;div&gt;&amp;nbsp;&lt;/div&gt;&lt;div&gt;But it&amp;#39;s not capturing the value part since I used ? &amp;nbsp;at the end of the regex. Any help would be awesome.&lt;span style="white-space:pre;" class="Apple-tab-span"&gt;	&lt;/span&gt;&amp;nbsp;&lt;/div&gt;</description></item><item><title>Matching especific note</title><link>http://regexadvice.com/forums/thread/87308.aspx</link><pubDate>Tue, 26 Feb 2013 17:44:57 GMT</pubDate><guid isPermaLink="false">d291b357-6366-4006-9008-4266c301325a:87308</guid><dc:creator>rodrigozem</dc:creator><slash:comments>1</slash:comments><comments>http://regexadvice.com/forums/thread/87308.aspx</comments><wfw:commentRss>http://regexadvice.com/forums/commentrss.aspx?SectionID=68&amp;PostID=87308</wfw:commentRss><description>&lt;div class="ForumPostBodyArea"&gt;
									&lt;div id="ctl00_ctl01_bcr_ctl00___PostRepeater_ctl01_PostViewWrapper" class="ForumPostContentText"&gt;
										&lt;p&gt;Hello,&lt;/p&gt;&lt;p&gt;I have the following text:&lt;/p&gt;&lt;p&gt;---------------- &lt;br /&gt;&lt;/p&gt;&lt;p&gt;text: &lt;br /&gt;&lt;/p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;u&gt;&lt;b&gt;E9/C&lt;/b&gt;&lt;/u&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A&amp;nbsp;&amp;nbsp;&amp;nbsp; C&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;b&gt;E&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/b&gt;E/B&amp;nbsp; Bb&amp;nbsp;&amp;nbsp; Cm6&lt;br /&gt;&amp;nbsp;&amp;nbsp; Colhendo o vazio que eu plantei &lt;br /&gt;&lt;b&gt;&lt;u&gt;E&lt;/u&gt;&amp;nbsp; &lt;/b&gt;G&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Esus&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A9&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; C#m&amp;nbsp;&amp;nbsp; &lt;b&gt;E&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/b&gt;A&amp;nbsp; &amp;nbsp;&lt;br /&gt;&lt;strike&gt;&lt;u&gt;E&lt;/u&gt; &lt;/strike&gt;por muito tempo procurei&amp;nbsp; &lt;strike&gt;E &lt;/strike&gt;a nossa&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;b&gt;E9/C&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/b&gt;E9/C#&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;b&gt;Emaj&lt;/b&gt;&lt;br /&gt;&lt;strike&gt;Essas &lt;/strike&gt;e Outras formas de alegria&lt;b&gt; &lt;br /&gt;&lt;/b&gt;&lt;p&gt;&amp;nbsp;----------------&lt;/p&gt;&lt;p&gt;&amp;nbsp;how can I match only bold E and not line-through words?&lt;/p&gt;&lt;p&gt;&amp;nbsp;Thanks,&lt;/p&gt;&lt;p&gt;Rodrigo &lt;br /&gt;&lt;/p&gt;


									&lt;/div&gt;
									&lt;/div&gt;</description></item><item><title>linkify with a twist</title><link>http://regexadvice.com/forums/thread/87276.aspx</link><pubDate>Mon, 04 Feb 2013 11:29:43 GMT</pubDate><guid isPermaLink="false">d291b357-6366-4006-9008-4266c301325a:87276</guid><dc:creator>SectionI</dc:creator><slash:comments>6</slash:comments><comments>http://regexadvice.com/forums/thread/87276.aspx</comments><wfw:commentRss>http://regexadvice.com/forums/commentrss.aspx?SectionID=68&amp;PostID=87276</wfw:commentRss><description>&lt;span id="intelliTxt"&gt;&lt;div&gt;Hi,&lt;br /&gt;
&lt;br /&gt;
I would like to replace all links that point to a page on facebook to 
have the text: &amp;quot;facebook page&amp;quot; and all other links should have the text:
 &amp;quot;website&amp;quot;&lt;br /&gt;
&lt;br /&gt;
this is what i currently use to linkify:&lt;br /&gt;
&lt;br /&gt;
Regex.Replace(pic.PictureDesc, 
@&amp;quot;((http|ftp|https):\/\/[\w\-_]+(\.[\w\-_]+)+([\w\-\.,@?^=%&amp;amp;:/~\+#]*[\w\-\@?^=%&amp;amp;/~\+#])?)&amp;quot;,&amp;quot;&amp;lt;a
 href=\&amp;quot;$1\&amp;quot; target=\&amp;quot;blank\&amp;quot;&amp;gt;$1&amp;lt;/a&amp;gt;&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
if you could help me adjust for both rules.&lt;br /&gt;
&lt;br /&gt;
thank you&lt;/div&gt;
		&lt;/span&gt;
	
		
		
		
		
		
		&lt;hr style="color:#ffffff;" /&gt;</description></item><item><title>match directory paths whose last name is numeric</title><link>http://regexadvice.com/forums/thread/87228.aspx</link><pubDate>Thu, 24 Jan 2013 16:56:57 GMT</pubDate><guid isPermaLink="false">d291b357-6366-4006-9008-4266c301325a:87228</guid><dc:creator>gw1500se</dc:creator><slash:comments>3</slash:comments><comments>http://regexadvice.com/forums/thread/87228.aspx</comments><wfw:commentRss>http://regexadvice.com/forums/commentrss.aspx?SectionID=68&amp;PostID=87228</wfw:commentRss><description>&lt;p&gt;I need an expression that will match a directory path only if the last directory name is all numeric [0-9]. I thought I knew how but I can&amp;#39;t get anything to work. I know I need to anchor it to the end but I don&amp;#39;t know how to get to the last / in the string. TIA.&lt;/p&gt;&lt;p&gt;&amp;nbsp;/*\/[0-9]?$/&lt;/p&gt;&lt;p&gt;Something like that?&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Help with Multi Line Match</title><link>http://regexadvice.com/forums/thread/87211.aspx</link><pubDate>Mon, 14 Jan 2013 11:12:59 GMT</pubDate><guid isPermaLink="false">d291b357-6366-4006-9008-4266c301325a:87211</guid><dc:creator>ehassania</dc:creator><slash:comments>2</slash:comments><comments>http://regexadvice.com/forums/thread/87211.aspx</comments><wfw:commentRss>http://regexadvice.com/forums/commentrss.aspx?SectionID=68&amp;PostID=87211</wfw:commentRss><description>&lt;p&gt;I need help to match the following over mutiple lines but cant figure it out as when there is multiple dates/time stamps in a row it matches the first date/timestamp with the username (UTVxxx). &lt;/p&gt;&lt;p&gt;Apologies for made up data, by I need to keep my client data secure, Heres my problem - Im 
looking through a massive log file for when the dates when the user (UTVxxx) 
accessed our site.&amp;nbsp;&amp;nbsp; &lt;br /&gt;&lt;/p&gt;&lt;p&gt;Here what I want: I want to find UTV282 and capture the date that immediately precedes it&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Example of what i am matching at the moment&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;2012-11-18 15:27:04&lt;/b&gt;&lt;br /&gt;Data Here&lt;br /&gt;Data Here&lt;br /&gt;Data Here&lt;br /&gt;2012-11-18 16:10:12&lt;br /&gt;Data Here&lt;br /&gt;Data Here&lt;br /&gt;Data Here, for:&lt;b&gt;UTV282&lt;/b&gt;, count now: 2&lt;br /&gt;&lt;b&gt;2012-11-18 15:17:04&lt;/b&gt;&lt;br /&gt;2012-11-18 18:42:25&lt;br /&gt;2012-11-18 01:27:34&lt;br /&gt;Data Here&lt;br /&gt;Data Here&lt;br /&gt;Data Here&lt;br /&gt;Data Here, for:&lt;b&gt;UTV282&lt;/b&gt;, count now: 2 &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Example of how I want it to match (i.e the first preceding date/time)&lt;/p&gt;&lt;p&gt;2012-11-18 15:27:04&lt;br /&gt;Data Here&lt;br /&gt;Data Here&lt;br /&gt;Data Here&lt;br /&gt;&lt;b&gt;2012-11-18 16:10:12&lt;/b&gt;&lt;br /&gt;Data Here&lt;br /&gt;Data Here&lt;br /&gt;Data Here, for:&lt;b&gt;UTV282&lt;/b&gt;, count now: 2&lt;br /&gt;2012-11-18 15:17:04&lt;br /&gt;2012-11-18 18:42:25&lt;br /&gt;&lt;b&gt;2012-11-18 01:27:34&lt;/b&gt;&lt;br /&gt;Data Here&lt;br /&gt;Data Here&lt;br /&gt;Data Here&lt;br /&gt;Data Here, for:&lt;b&gt;UTV282&lt;/b&gt;, count now: 3 &lt;/p&gt;&lt;p&gt;My construction at the moment: [0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2},.*?for:UTV282?&lt;/p&gt;&lt;p&gt;Can somebody please help! - Many thanks! :) &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Difficulties Parsing part of a text</title><link>http://regexadvice.com/forums/thread/87173.aspx</link><pubDate>Fri, 14 Dec 2012 18:52:27 GMT</pubDate><guid isPermaLink="false">d291b357-6366-4006-9008-4266c301325a:87173</guid><dc:creator>dfcastro</dc:creator><slash:comments>1</slash:comments><comments>http://regexadvice.com/forums/thread/87173.aspx</comments><wfw:commentRss>http://regexadvice.com/forums/commentrss.aspx?SectionID=68&amp;PostID=87173</wfw:commentRss><description>I have this string in bold &lt;b&gt;1 - Q254061 ( Prova: FCC - 2012 - TCE-AM - Analista de Controle Externo - Tecnologia da Informa&amp;ccedil;&amp;atilde;o / Modelagem de Processos de Neg&amp;oacute;cio (BPM) /&lt;/b&gt;&lt;div&gt;&lt;b&gt;BPMN (Bussines Process Modeling Notation) ; &amp;nbsp;)&lt;/b&gt; and I am trying to get only the part that corresponds to&amp;nbsp;&lt;b&gt;Prova: FCC - 2012 - TCE-AM - Analista de Controle Externo - Tecnologia da Informa&amp;ccedil;&amp;atilde;o&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&lt;/div&gt;&lt;div&gt;I am trying to figure out the regex to do that and so far I could not find it.&lt;/div&gt;&lt;div&gt;I tried with this kind of thought to build the regex (?!^((\d)*(\s[-]\s)(\s\(\s)))(([^/])*(?![/]\w).*)&lt;/div&gt;&lt;div&gt;&amp;nbsp;&lt;/div&gt;&lt;div&gt;First anchor the begin of the line with ^&lt;/div&gt;&lt;div&gt;Then build the expression that corresponds to&amp;nbsp;&lt;b&gt;1 - Q254061 (&amp;nbsp;&lt;/b&gt;that is, or at least I think it is, &lt;b&gt;\d\s[-]\sQ(\d){6,7}\s\(&lt;/b&gt;&lt;/div&gt;&lt;div&gt;Then negate everything until then using an exclusion group &lt;b&gt;(?:^(\d\s[-]\sQ(\d){6,7}\s\())&lt;/b&gt;&lt;/div&gt;&lt;div&gt;Then build the expression for the next exclusion group that comes after the first / character - &lt;b&gt;(?:^[/](.)*)&lt;/b&gt;&lt;/div&gt;&lt;div&gt;Then what I want to get from the expression - (.)*&lt;/div&gt;&lt;div&gt;And then put it together - &amp;nbsp;&lt;b&gt;(?:^(\d\s[-]\sQ(\d){6,7}\s\())(.)*&lt;/b&gt;&lt;b&gt;(?:^[/](.)*)&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&lt;/div&gt;&lt;div&gt;But I get no match.&lt;/div&gt;&lt;div&gt;Where is my mistake?&amp;nbsp;&lt;/div&gt;</description></item><item><title>How can I select the first 300 words of a value with regexp?</title><link>http://regexadvice.com/forums/thread/87142.aspx</link><pubDate>Sat, 01 Dec 2012 08:40:51 GMT</pubDate><guid isPermaLink="false">d291b357-6366-4006-9008-4266c301325a:87142</guid><dc:creator>jiri2</dc:creator><slash:comments>3</slash:comments><comments>http://regexadvice.com/forums/thread/87142.aspx</comments><wfw:commentRss>http://regexadvice.com/forums/commentrss.aspx?SectionID=68&amp;PostID=87142</wfw:commentRss><description>&lt;p&gt;Can regexp do this? It&amp;#39;s .NET regexp. I had an expression last night from stackexchange but seem to have lost it, and anyways it wasn&amp;#39;t working. Imagine you have a value inside a table and you&amp;#39;re extracting it and applying regexp to the extraction. &amp;nbsp;And you want to select the first three hundred characters, in which there can be all sorts of things like line breaks, spaces, new paragraphs, non alphanumeric, and numbers, you name it, it&amp;#39;s there, which is why extracting by line break is a bad idea, and only by character amount sounds the best way.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;And what about an added twist. Can regexp, all on its own, not split the value at the the 300th word, but at the period sign that&amp;#39;s closest to the 300th character? This second question easily has a much easier, though clumsier, solution; doing a second regexp to extract what&amp;#39;s left of the sentence in the result, that&amp;#39;s sitting say at the 310th character. But I&amp;#39;m wondering if anyone can envision a regexp where it all happens in one go?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks in advance for any help.&lt;/p&gt;</description></item><item><title>Problems with line breaks</title><link>http://regexadvice.com/forums/thread/87110.aspx</link><pubDate>Wed, 21 Nov 2012 01:16:12 GMT</pubDate><guid isPermaLink="false">d291b357-6366-4006-9008-4266c301325a:87110</guid><dc:creator>jiri2</dc:creator><slash:comments>4</slash:comments><comments>http://regexadvice.com/forums/thread/87110.aspx</comments><wfw:commentRss>http://regexadvice.com/forums/commentrss.aspx?SectionID=68&amp;PostID=87110</wfw:commentRss><description>&lt;p&gt;Hello. I&amp;#39;m having quite a few problems expressing line breaks in regex. I only know how to capture my text with a bunch of new lines that break the csv or tsv I try to create with it. When trying to capture:&amp;nbsp;&lt;/p&gt;&lt;p&gt;--------------------------------------------------------------&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;        &amp;lt;b&amp;gt;&amp;lt;span class=&amp;quot;h3color tiny&amp;quot;&amp;gt;This review is from: &amp;lt;/span&amp;gt;&amp;lt;a href=&amp;quot;http://www.amazon.com/Schindlers-List-VHS-Liam-Neeson/dp/6303168507/ref=cm_cr_pr_orig_subj/183-1056400-8295663&amp;quot;&amp;gt;Schindler&amp;#39;s List [VHS] (VHS Tape)&amp;lt;/a&amp;gt;&amp;lt;/b&amp;gt;&lt;br /&gt;      &amp;lt;/div&amp;gt;&lt;br /&gt;&lt;br /&gt;Schindler&amp;#39;s List is my favorite historical drama of all-time for a number of reasons. Not only is it a masterpiece from a cinematic point of view, but it is priceless for the story it tells to the world. &amp;lt;p&amp;gt;First of all,  the acting is superb. Liam Neeson does well as Oskar Schindler, but in  particular I liked Ben Kingsley (as Istak Stern, Schindler&amp;#39;s accountant)  and Ralph Fiennes (as Amon Goeth, the camp commandant). All of the  performances were very convincing and reflect the good  casting.&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;Another great feature of this film is the soundtrack. Slow,  soaring music tells of the painful circumstances of the Jews and of their  conflict with the Nazi regime. Mixed in with the instrumental pieces are  Jewish melodies which also gave me a sense of the cultural traditions of  the Jewish people. &amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;From a technical point of view, the decision by  director Spielberg to shoot the movie is black-and-white was a good one. In  fact, I think it makes the movie better than it would have been in color.  The few color segments throughout the movie are aptly placed and help to  focus the viewer&amp;#39;s attention on particular details through the eyes of  Schindler. The scenery and photography were excellent compared to other  movies I have seen and contribute to the whole atmosphere of the 1940s.  Some people may be put off a bit by the length (over 3 hours) but believe  me, every minute is worthwhile. Unlike other long movies, there are no  lulls or useless scenes -- everything counts. &amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;The best part of the movie  without any doubt is the story itself, the tale of Oskar Schindler and how  he was able to save 1100 Jews from the Auschwitz gas chambers by employing  them in his enamelware factory and eventually his shelling factory.  Schindler&amp;#39;s ambition and personal success shines through amidst the Jewish  tragedy and shows how one man, if he has the willpower, can accomplish what  appears to be impossible. Based on the novel by Thomas Keneally (which I  have not yet had the opportunity to read), this movie digs deep into the  human soul and shows how different people are able to survive. &amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;There are  many touching moments in this film; in particular, near the end when the  war has been declared over and the *** must flee from the Soviet army.  This part and the modern-day segment that follows are both truly  heart-warming tributes. I finished watching this movie for about the fourth  time yesterday, and even though I didn&amp;#39;t cry, tears welled up in my eyes  (and this rarely happens when I watch movies). &amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;This movie is a must-see  not only for its excellence in the film genre but for the story it presents  to the viewer. Although it is not suitable for young children (due to its  violence and mature content), any mature individual should see it so they  can understand that a spark of good can still exist in a fire of evil. This  movie deserved all of the Academy Awards that it received and will likely  remain in top ten lists for at least the next fifty years. Highly  recommended.&lt;br /&gt;      &amp;lt;/p&amp;gt;&amp;lt;div style='padding-top: 10px; clear: both; width: 100%;'&amp;gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;------------------------------------------&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;using&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;(?&amp;lt;=\ \ \ \ \ \ \ &amp;lt;b&amp;gt;&amp;lt;span\ class=&amp;quot;h3color\ tiny&amp;quot;&amp;gt;This\ review\ is\ from:\ &amp;lt;/span&amp;gt;&amp;lt;a\ href=&amp;quot;http://www\.amazon\.com/Schindlers-List-VHS-Liam-Neeson/dp/6303168507/ref=cm_cr_pr_orig_subj/183-1056400-8295663&amp;quot;&amp;gt;Schindler&amp;#39;s\ List\ \[VHS]\ \(VHS\ Tape\)&amp;lt;/a&amp;gt;&amp;lt;/b&amp;gt;)[\w\W]*?(?=\ \ \ \ \ \ &amp;lt;/p&amp;gt;&amp;lt;div\ style='padding-top:\ 10px;\ clear:\ both;\ width:\ 100%;'&amp;gt;)&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;------------------------&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I get three annoying lines above my article. Two of them are empty and one has the &amp;lt;/div&amp;gt; mention. Below the article I also get another line break that further breaks up my expression. These line breaks go on to be interpreted by my script as line breaks in the csv or the text file I try to create.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I&amp;#39;m using .NET regex, and a regex builder to come up with the expressions. I would like the expression to target articles that are in this format, not this specific article only. I always lose myself in regex line breaks and expressions in general due to the amount of syntax involved, so would greatly appreciate any help, thanks.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;The document is DOM HTML and it has spaces in front of some of its row, though not in front of the article&amp;#39;s row. Below is my understanding of what the three rows coming before the article should look like but I clearly must be doing something wrong:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;(?&amp;lt;=\ \ \ \ \ \ \ &amp;lt;b&amp;gt;&amp;lt;span\ class=&amp;quot;h3color\ tiny\n\&amp;lt;\/\w+\ &amp;gt;\n&amp;quot;&amp;gt;This\ review\is\ from:\ &amp;lt;/span&amp;gt;&amp;lt;a\ href=&amp;quot;http://www\.amazon\.com/Schindlers-List-VHS-Liam-Neeson/dp/6303168507/ref=cm_cr_pr_orig_subj/183-1056400-8295663&amp;quot;&amp;gt;Schindler&amp;#39;s\ List\ \[VHS]\ \(VHS\ Tape\)&amp;lt;/a&amp;gt;&amp;lt;/b&amp;gt;)[\w\W]*?(?=\ \ \ \ \ \ &amp;lt;/p&amp;gt;&amp;lt;div\ style='padding-top:\ 10px;\ clear:\ both;\ width:\ 100%;'&amp;gt;)&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;---------------------&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Is&amp;nbsp; \n\&amp;lt;\/\w+\ &amp;gt;\n wrong?&amp;nbsp;&lt;/p&gt;</description></item><item><title>Marking Science Homework with a More Sophisticated Regex</title><link>http://regexadvice.com/forums/thread/87117.aspx</link><pubDate>Sat, 24 Nov 2012 15:30:38 GMT</pubDate><guid isPermaLink="false">d291b357-6366-4006-9008-4266c301325a:87117</guid><dc:creator>RankAmateur</dc:creator><slash:comments>7</slash:comments><comments>http://regexadvice.com/forums/thread/87117.aspx</comments><wfw:commentRss>http://regexadvice.com/forums/commentrss.aspx?SectionID=68&amp;PostID=87117</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;I am using a Regex to mark science homework in a little online program. The Regex searches for keywords (and their alternatives), without them having to be in any particular order. The Regex also includes a search for forbidden words. This is the Regex, where A B C D stand for necessary words and Z for a forbidden word:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;span style="font-family:'Times New Roman', serif;font-size:11pt;"&gt;/^(?!.*?(Z))(?=.*?\b(A))&lt;/span&gt;&lt;span style="font-family:'Times New Roman', serif;font-size:15px;"&gt;(?=.*?\b(B))&lt;/span&gt;&lt;span style="font-family:'Times New Roman', serif;font-size:15px;"&gt;(?=.*?\b(C))&lt;/span&gt;&lt;span style="font-family:'Times New Roman', serif;font-size:15px;"&gt;(?=.*?\b(D))&lt;/span&gt;&lt;span style="font-family:'Times New Roman', serif;font-size:11pt;"&gt;.{0,100}$/&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;This has worked fantastically well and I now have about 2,500 questions posted using this basic construction with an average marking accuracy of about 99% (Thanks to the genius who posted this for me some 2 years ago!!).&amp;nbsp;&lt;/p&gt;&lt;p&gt;What I could do with is to be able to restrict the order of the keywords slightly. I can already fix them in A B C D order using &amp;nbsp;&amp;nbsp;&lt;span style="font-family:'Times New Roman', serif;font-size:15px;"&gt;.*?\b &amp;nbsp; instead of &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="font-family:'Times New Roman', serif;font-size:15px;"&gt;?=.*?\b &amp;nbsp; . But what would be really useful is to link A with B and C with D so only the following would be allowed:&lt;/span&gt;&lt;/p&gt;&lt;p&gt;A &amp;nbsp;B &amp;nbsp;C &amp;nbsp;D ; B &amp;nbsp;A &amp;nbsp;C &amp;nbsp;D ; A &amp;nbsp;B &amp;nbsp;D &amp;nbsp;C ; B &amp;nbsp;A &amp;nbsp;D &amp;nbsp;C&lt;/p&gt;&lt;p&gt;I know I can simply do 4 Regexes, but this lacks elegance and I need more complex versions of the above (eg A &amp;nbsp;B &amp;nbsp;C &amp;nbsp;D &amp;nbsp;grouped separately from E and F). A good example of a use of this is a chemical equation where the reactants can be in any order and &amp;nbsp;products can be in any order but you can&amp;#39;t mix reactants with product in the equation.&lt;/p&gt;&lt;p&gt;Cheers&amp;nbsp;&lt;/p&gt;&lt;p&gt;PS I don&amp;#39;t really understand the above, so explanations need to be simple!&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>How to rename dates to a different format?</title><link>http://regexadvice.com/forums/thread/87112.aspx</link><pubDate>Wed, 21 Nov 2012 10:38:42 GMT</pubDate><guid isPermaLink="false">d291b357-6366-4006-9008-4266c301325a:87112</guid><dc:creator>Srivas</dc:creator><slash:comments>1</slash:comments><comments>http://regexadvice.com/forums/thread/87112.aspx</comments><wfw:commentRss>http://regexadvice.com/forums/commentrss.aspx?SectionID=68&amp;PostID=87112</wfw:commentRss><description>&lt;p&gt;Hi!&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;I want to use RegEx in Total Commander to rename files starting with dates to have different format. For example 2012-01-01 to be 2012.01.01&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;Dates are usually in the beginning of file names, but not always. Can it be possible to write a code to find the place with the date by itself and rename it&amp;nbsp;accordingly?&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;How to do that?&amp;nbsp;&lt;/p&gt;</description></item><item><title>How to match microsoft.com?</title><link>http://regexadvice.com/forums/thread/87066.aspx</link><pubDate>Mon, 05 Nov 2012 04:25:29 GMT</pubDate><guid isPermaLink="false">d291b357-6366-4006-9008-4266c301325a:87066</guid><dc:creator>yxq</dc:creator><slash:comments>1</slash:comments><comments>http://regexadvice.com/forums/thread/87066.aspx</comments><wfw:commentRss>http://regexadvice.com/forums/commentrss.aspx?SectionID=68&amp;PostID=87066</wfw:commentRss><description>&lt;p&gt;Hello,&lt;br /&gt;Want a regex to match microsoft.com, not match &lt;a href="http://www.microsoft.com/"&gt;http://www.microsoft.com&lt;/a&gt; and &lt;a href="http://www.microsoft.com/"&gt;www.microsoft.com&lt;/a&gt;, and i found a sample from&lt;/p&gt;&lt;p&gt;&lt;a href="http://www.regexlib.com/(A(i3Kyj0Yk81nXEJiXLnyI3HEcj6HahTAytiUIG8vCQTgDuUnCwImhve3Xts2vvCo19lEqjB9cdVix2qlFA4NIycTwMPpHsr7UhvfGzXcRqkzgJoOZLbkB3mV0NqJbKZl06OxjQS3GZBaBBoZAMSmKJ07JK4qRK5EB2h2l_rh6QrOPmVhl6QT1wv3ZySbE77-W0))/REDetails.aspx?regexp_id=158"&gt;http://www.regexlib.com/(A(i3Kyj0Yk81nXEJiXLnyI3HEcj6HahTAytiUIG8vCQTgDuUnCwImhve3Xts2vvCo19lEqjB9cdVix2qlFA4NIycTwMPpHsr7UhvfGzXcRqkzgJoOZLbkB3mV0NqJbKZl06OxjQS3GZBaBBoZAMSmKJ07JK4qRK5EB2h2l_rh6QrOPmVhl6QT1wv3ZySbE77-W0))/REDetails.aspx?regexp_id=158&lt;/a&gt;&lt;/p&gt;&lt;p&gt;But it matchs &lt;a href="http://www.microsoft.com/"&gt;www.microsoft.com&lt;/a&gt;, i only want to match microsoft.com&lt;/p&gt;&lt;p&gt;Thank you&lt;/p&gt;</description></item><item><title>Split SQL WHERE Clause</title><link>http://regexadvice.com/forums/thread/40538.aspx</link><pubDate>Fri, 21 Mar 2008 01:58:07 GMT</pubDate><guid isPermaLink="false">d291b357-6366-4006-9008-4266c301325a:40538</guid><dc:creator>JHulse</dc:creator><slash:comments>15</slash:comments><comments>http://regexadvice.com/forums/thread/40538.aspx</comments><wfw:commentRss>http://regexadvice.com/forums/commentrss.aspx?SectionID=68&amp;PostID=40538</wfw:commentRss><description>&lt;p&gt;I am pretty new to this Reg Exp stuff, but gaining more understanding every day.&amp;nbsp; My ASP application is attempting to Split a WHERE clause on the&amp;nbsp;&amp;quot; AND &amp;quot;s, but having no luck.&amp;nbsp; I would also one day like to expand it to be able to split on &amp;quot; OR &amp;quot; but for now&amp;nbsp;I settle with the baby step.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Expression:&lt;/strong&gt; (\w+)\s*([&amp;lt;&amp;gt;=]+)\s*([^AND$]+)&lt;br /&gt;&lt;strong&gt;Test Value: &lt;/strong&gt;&lt;span&gt;String=&amp;#39;57846&amp;#39; AND Number=1 AND Date=#1/1/2008# AND Time=#1:34 PM# AND DATETIMED = #1/1/2008 1:34:25 PM# AND GTOE&amp;gt;=100 AND &lt;span&gt;SpecialString&lt;/span&gt;=&amp;#39;With &lt;span&gt;Aposts&lt;/span&gt; And Spaces &amp;#39;&amp;#39;4&amp;#39;&amp;#39;&amp;#39;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;The matches return:&lt;/strong&gt;&lt;br /&gt;&amp;quot;String=&amp;#39;57846&amp;#39; &amp;quot;&lt;br /&gt;&amp;quot;Number=1 &amp;quot;&lt;br /&gt;&amp;quot;Date=#1/1/2008# &amp;quot;&lt;br /&gt;&amp;quot;Time=#1:34 PM# &amp;quot;&lt;br /&gt;&amp;quot;DATETIMED = #1/1/2008 1:34:25 PM# &amp;quot;&lt;br /&gt;&amp;quot;GTOE&amp;gt;=100 &amp;quot;&lt;br /&gt;&lt;span&gt;&amp;quot;&lt;span&gt;SpecialString&lt;/span&gt;=&amp;#39;With &amp;quot;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;All returns are great, except for the last, which I need to be:&lt;br /&gt;&lt;span&gt;&amp;quot;&lt;span&gt;SpecialString&lt;/span&gt;=&amp;#39;With &lt;span&gt;Aposts&lt;/span&gt; And Spaces &amp;#39;&amp;#39;4&amp;#39;&amp;#39;&lt;/span&gt;&amp;quot;&lt;/p&gt;&lt;p&gt;Thanks for the help,&lt;/p&gt;&lt;p&gt;Jake&lt;/p&gt;</description></item><item><title>get recursion number or use result of group in later expression?</title><link>http://regexadvice.com/forums/thread/86847.aspx</link><pubDate>Mon, 15 Oct 2012 10:01:35 GMT</pubDate><guid isPermaLink="false">d291b357-6366-4006-9008-4266c301325a:86847</guid><dc:creator>sergiozambrano</dc:creator><slash:comments>1</slash:comments><comments>http://regexadvice.com/forums/thread/86847.aspx</comments><wfw:commentRss>http://regexadvice.com/forums/commentrss.aspx?SectionID=68&amp;PostID=86847</wfw:commentRss><description>&lt;div style="margin:0px 5px 5px 0px;padding:0px;border:0px;font-size:14px;vertical-align:baseline;width:660px;line-height:18px;font-family:Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif;" class="post-text"&gt;&lt;p style="margin:0px 0px 1em;padding:0px;border:0px;vertical-align:baseline;background-color:transparent;clear:both;word-wrap:break-word;"&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="margin:0px 5px 5px 0px;padding:0px;border:0px;vertical-align:baseline;width:660px;" class="post-text"&gt;&lt;p style="margin:0px 0px 1em;padding:0px;border:0px;vertical-align:baseline;background-color:transparent;clear:both;word-wrap:break-word;"&gt;I need to match consecutive numbers, and repeat the same piece of regex as long as they keep incrementing, and what would really reduce my expression, 250+ characters long already! (or rather make it more elegant) would be to:&lt;/p&gt;&lt;p style="margin:0px 0px 1em;padding:0px;border:0px;vertical-align:baseline;background-color:transparent;clear:both;word-wrap:break-word;"&gt;&lt;code style="margin:0px;padding:1px 5px;border:0px;vertical-align:baseline;background-color:#eeeeee;font-family:Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif;"&gt;be able to use the result from one capture group in another expression later&lt;/code&gt;&lt;/p&gt;&lt;p style="margin:0px 0px 1em;padding:0px;border:0px;vertical-align:baseline;background-color:transparent;clear:both;word-wrap:break-word;"&gt;or&lt;/p&gt;&lt;p style="margin:0px 0px 1em;padding:0px;border:0px;vertical-align:baseline;background-color:transparent;clear:both;word-wrap:break-word;"&gt;&lt;code style="margin:0px;padding:1px 5px;border:0px;vertical-align:baseline;background-color:#eeeeee;font-family:Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif;"&gt;to get the current iteration number and match other expressions against&lt;/code&gt;&lt;/p&gt;&lt;p style="margin:0px 0px 1em;padding:0px;border:0px;vertical-align:baseline;background-color:transparent;clear:both;word-wrap:break-word;"&gt;&lt;code style="margin:0px;padding:1px 5px;border:0px;vertical-align:baseline;background-color:#eeeeee;font-family:Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif;"&gt;PS: It HAS to be regex, not other programming involved.&lt;/code&gt;&lt;/p&gt;&lt;h2 style="margin:0px 0px 1em;padding:0px;border:0px;font-size:19px;vertical-align:baseline;background-color:transparent;font-family:'Trebuchet MS', 'Liberation Sans', 'DejaVu Sans', sans-serif;line-height:1.3;"&gt;example:&lt;/h2&gt;&lt;p style="margin:0px 0px 1em;padding:0px;border:0px;vertical-align:baseline;background-color:transparent;clear:both;word-wrap:break-word;"&gt;text 1 matches&lt;/p&gt;&lt;p style="margin:0px 0px 1em;padding:0px;border:0px;vertical-align:baseline;background-color:transparent;clear:both;word-wrap:break-word;"&gt;text 2 matches&lt;/p&gt;&lt;p style="margin:0px 0px 1em;padding:0px;border:0px;vertical-align:baseline;background-color:transparent;clear:both;word-wrap:break-word;"&gt;text 3 matches&lt;/p&gt;&lt;p style="margin:0px 0px 1em;padding:0px;border:0px;vertical-align:baseline;background-color:transparent;clear:both;word-wrap:break-word;"&gt;text 6 doesn&amp;#39;t match. end.&lt;/p&gt;&lt;p style="margin:0px 0px 1em;padding:0px;border:0px;vertical-align:baseline;background-color:transparent;clear:both;word-wrap:break-word;"&gt;text 1 shouldn&amp;#39;t even get here (or start over?)&lt;/p&gt;&lt;p style="margin:0px 0px 1em;padding:0px;border:0px;vertical-align:baseline;background-color:transparent;clear:both;word-wrap:break-word;"&gt;- I know I can do it with nested conditionals, but I don&amp;#39;t want to manually add one expression for each condition.&lt;/p&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/div&gt;</description></item><item><title>Strip HTTP links off of text - how?</title><link>http://regexadvice.com/forums/thread/86702.aspx</link><pubDate>Mon, 01 Oct 2012 21:56:52 GMT</pubDate><guid isPermaLink="false">d291b357-6366-4006-9008-4266c301325a:86702</guid><dc:creator>SkyFrontier</dc:creator><slash:comments>9</slash:comments><comments>http://regexadvice.com/forums/thread/86702.aspx</comments><wfw:commentRss>http://regexadvice.com/forums/commentrss.aspx?SectionID=68&amp;PostID=86702</wfw:commentRss><description>&lt;p&gt;Hi, people.&lt;/p&gt;&lt;p&gt;Using EditPad Pro, how do I extract http links, using regex?&lt;/p&gt;&lt;p&gt;I need to preserve those links, everything else must go. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;#39;&amp;euro;&amp;#39; or &amp;#39;&amp;euro;&amp;#39; can be used as delimiters.&lt;/p&gt;&lt;p&gt;Thanks in advance... &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Quick help with construction.</title><link>http://regexadvice.com/forums/thread/86676.aspx</link><pubDate>Wed, 26 Sep 2012 20:06:05 GMT</pubDate><guid isPermaLink="false">d291b357-6366-4006-9008-4266c301325a:86676</guid><dc:creator>Persican</dc:creator><slash:comments>2</slash:comments><comments>http://regexadvice.com/forums/thread/86676.aspx</comments><wfw:commentRss>http://regexadvice.com/forums/commentrss.aspx?SectionID=68&amp;PostID=86676</wfw:commentRss><description>&lt;p&gt;Hi everyone.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I&amp;#39;m trying to capture some group from this string:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;quot;VA90-258&amp;nbsp;&amp;nbsp;&amp;nbsp; 37.2997&amp;nbsp;&amp;nbsp; -75.8333&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 13.3&amp;nbsp;&amp;nbsp; VIRGINIA COAST&amp;quot;&lt;/p&gt;&lt;p&gt;For instance, I, using this regex&lt;br /&gt;&amp;#39;\\S+\\d+\\-\\d+\\W+\\d+.\\d+\\W+\\d+.\\d+\\W+\\d+.\\d+\\W+\\S*&amp;#39;&lt;/p&gt;&lt;p&gt;which is certainly not elegant. Additionally, I fail to capture the last string VIRGINIA COAST. Once my regex is correct, I&amp;#39;ll place place () to get 5 groups&lt;/p&gt;&lt;p&gt;VA90-258&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/p&gt;&lt;p&gt;37.2997&amp;nbsp;&amp;nbsp; &lt;/p&gt;&lt;p&gt;-75.8333&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/p&gt;&lt;p&gt;13.3&lt;/p&gt;&lt;p&gt;VIRGINIA COAST&amp;quot;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Any help would be appreciated.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;With regards,&lt;/p&gt;&lt;p&gt;Phil &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Need help with RegEx I am construcing</title><link>http://regexadvice.com/forums/thread/86548.aspx</link><pubDate>Wed, 19 Sep 2012 15:17:12 GMT</pubDate><guid isPermaLink="false">d291b357-6366-4006-9008-4266c301325a:86548</guid><dc:creator>RandyHJ</dc:creator><slash:comments>1</slash:comments><comments>http://regexadvice.com/forums/thread/86548.aspx</comments><wfw:commentRss>http://regexadvice.com/forums/commentrss.aspx?SectionID=68&amp;PostID=86548</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m creating a validation RegEx for a textbox input control.&amp;nbsp; My requirements are a six digit number that can begin with any numbers except &amp;#39;96&amp;#39;.&amp;nbsp; So I could have 95 or 97 or any other combination of numbers in the first two positions, just not &amp;#39;96&amp;#39;.&amp;nbsp; I have a regex for that part:&lt;/p&gt;&lt;p&gt;&lt;b&gt;^([0-8][0-9]|(9[7-9]|9[0-5]))&lt;/b&gt;&lt;/p&gt;&lt;p&gt;What I need help with is making sure that the number is a minimum and maximum of six digits. That is the part that is eluding me.&lt;/p&gt;&lt;p&gt;Any help would be appreciated.&lt;/p&gt;&lt;p&gt;Thanks. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Help with RegEx - change lowr case to upper</title><link>http://regexadvice.com/forums/thread/86432.aspx</link><pubDate>Wed, 05 Sep 2012 09:29:47 GMT</pubDate><guid isPermaLink="false">d291b357-6366-4006-9008-4266c301325a:86432</guid><dc:creator>richiwatts</dc:creator><slash:comments>4</slash:comments><comments>http://regexadvice.com/forums/thread/86432.aspx</comments><wfw:commentRss>http://regexadvice.com/forums/commentrss.aspx?SectionID=68&amp;PostID=86432</wfw:commentRss><description>&lt;font size="3" face="Times New Roman"&gt;

&lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt;" class="MsoNormal"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;We have a few hundred XML files and we need to make sure
that the first letter after &amp;lt;indexterm&amp;gt; is a Capital&lt;u5:p&gt;&lt;/u5:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;

&lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt;" class="MsoNormal"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&lt;u5:p&gt;&amp;nbsp;&lt;/u5:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;

&lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt;" class="MsoNormal"&gt;&lt;font face="Calibri"&gt;&lt;font size="3"&gt;&lt;span style="color:red;"&gt;&amp;lt;indexterm&amp;gt;s&lt;/span&gt;kapa
problem&amp;lt;/indexterm&amp;gt;&lt;u5:p&gt;&lt;/u5:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;

&lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt;" class="MsoNormal"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&lt;u5:p&gt;&amp;nbsp;&lt;/u5:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;

&lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt;" class="MsoNormal"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;Should be &lt;u5:p&gt;&lt;/u5:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;

&lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt;" class="MsoNormal"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&lt;u5:p&gt;&amp;nbsp;&lt;/u5:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;

&lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt;" class="MsoNormal"&gt;&lt;font face="Calibri"&gt;&lt;font size="3"&gt;&lt;span style="color:red;"&gt;&amp;lt;indexterm&amp;gt;S&lt;/span&gt;kapa
problem&amp;lt;/indexterm&amp;gt;&lt;u5:p&gt;&lt;/u5:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;

&lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt;" class="MsoNormal"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&lt;u5:p&gt;&amp;nbsp;&lt;/u5:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;

&lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt;" class="MsoNormal"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&lt;u5:p&gt;&amp;nbsp;&lt;/u5:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;

&lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt;" class="MsoNormal"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;Is this possible with a RegEx search and replace?&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style="margin:0cm 0cm 0pt;" class="MsoNormal"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style="margin:0cm 0cm 0pt;" class="MsoNormal"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;Also, what tool supports this?&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style="margin:0cm 0cm 0pt;" class="MsoNormal"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;I have Notepad++ and &lt;u5:p&gt;&lt;/u5:p&gt;&lt;o:p&gt;&amp;nbsp;Visual Web Developer&lt;/o:p&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;

&lt;u5:p&gt;&lt;/u5:p&gt;&lt;/font&gt;&lt;/font&gt;</description></item><item><title>VERY simple match request</title><link>http://regexadvice.com/forums/thread/86429.aspx</link><pubDate>Tue, 04 Sep 2012 21:03:05 GMT</pubDate><guid isPermaLink="false">d291b357-6366-4006-9008-4266c301325a:86429</guid><dc:creator>arfa</dc:creator><slash:comments>1</slash:comments><comments>http://regexadvice.com/forums/thread/86429.aspx</comments><wfw:commentRss>http://regexadvice.com/forums/commentrss.aspx?SectionID=68&amp;PostID=86429</wfw:commentRss><description>&lt;p&gt;This is so simple (to those who know) I can&amp;#39;t find it listed in any library or such.&lt;br /&gt;I would like to locate (presuming to use preg_match) ...&amp;nbsp; BBcode tag&lt;/p&gt;&lt;p&gt;[tabstyle number number color]&lt;/p&gt;&lt;p&gt; I have tried using [[tabstyle-]] - as a range - with various escape attempts for the []&lt;br /&gt;etc.. &lt;br /&gt;I confess my general lack of regex knowledge and hope someone can help here.&lt;/p&gt;&lt;p&gt;&amp;nbsp;Thank you. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>preg_replace whitespaces into underscore between double quotes</title><link>http://regexadvice.com/forums/thread/86192.aspx</link><pubDate>Fri, 17 Aug 2012 09:36:58 GMT</pubDate><guid isPermaLink="false">d291b357-6366-4006-9008-4266c301325a:86192</guid><dc:creator>zorden</dc:creator><slash:comments>7</slash:comments><comments>http://regexadvice.com/forums/thread/86192.aspx</comments><wfw:commentRss>http://regexadvice.com/forums/commentrss.aspx?SectionID=68&amp;PostID=86192</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;I need a preg_replace pattern to do the following:&lt;/p&gt;&lt;p&gt;- change all whitespaces between words between double quotes into underscore&lt;/p&gt;&lt;p&gt;In this forum I found a solution &lt;/p&gt;&lt;p&gt;&amp;nbsp;(?=[^&amp;quot;]*&amp;quot;([^&amp;quot;]*&amp;quot;[^&amp;quot;]*&amp;quot;)*$) &lt;/p&gt;&lt;p&gt;(with trailing space) but does not seem to work with preg_replace. Can anybody help me out with the pattern?&lt;/p&gt;&lt;p&gt;Thanks,&lt;/p&gt;&lt;p&gt;Peter &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Help with regular expression</title><link>http://regexadvice.com/forums/thread/86272.aspx</link><pubDate>Thu, 23 Aug 2012 18:38:55 GMT</pubDate><guid isPermaLink="false">d291b357-6366-4006-9008-4266c301325a:86272</guid><dc:creator>Persican</dc:creator><slash:comments>4</slash:comments><comments>http://regexadvice.com/forums/thread/86272.aspx</comments><wfw:commentRss>http://regexadvice.com/forums/commentrss.aspx?SectionID=68&amp;PostID=86272</wfw:commentRss><description>&lt;p&gt;Hi everyone.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I have the following text in which I would like to retreive the value of &amp;nbsp;LMIN_BAND1 = -1.520. I only want the numerical value.&lt;/p&gt;&lt;p&gt;For instance, I&amp;nbsp;tried&amp;nbsp;this RE&amp;nbsp;&amp;#39;LMIN_BAND1 = \d+(\.\d{1,4})?&amp;#39; but it does not work.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Any help would be appreciated.&amp;nbsp;&lt;/p&gt;&lt;p&gt;Phil&amp;nbsp;&lt;/p&gt;&lt;p&gt;s = {&amp;#39;GROUP = L1_METADATA_FILE&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp;GROUP = METADATA_FILE_INFO&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp; &amp;nbsp;ORIGIN = &amp;quot;Image courtesy of the U.S. Geological Survey&amp;quot;&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp; &amp;nbsp;REQUEST_ID = &amp;quot;0800812080192_00001&amp;quot;&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp; &amp;nbsp;PRODUCT_CREATION_TIME = 2008-12-09T03:56:21Z&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp; &amp;nbsp;STATION_ID = &amp;quot;EDC&amp;quot;&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp; &amp;nbsp;LANDSAT5_XBAND = &amp;quot;1&amp;quot;&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp; &amp;nbsp;GROUND_STATION = &amp;quot;XXX&amp;quot;&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp; &amp;nbsp;LPS_PROCESSOR_NUMBER = 0&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp; &amp;nbsp;DATEHOUR_CONTACT_PERIOD = &amp;quot;8416915&amp;quot;&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp; &amp;nbsp;SUBINTERVAL_NUMBER = &amp;quot;07&amp;quot;&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp;END_GROUP = METADATA_FILE_INFO&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp;GROUP = PRODUCT_METADATA&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp; &amp;nbsp;PRODUCT_TYPE = &amp;quot;L1T&amp;quot;&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp; &amp;nbsp;ELEVATION_SOURCE = &amp;quot;GLS2000&amp;quot;&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp; &amp;nbsp;PROCESSING_SOFTWARE = &amp;quot;LPGS_9.2.0&amp;quot;&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp; &amp;nbsp;EPHEMERIS_TYPE = &amp;quot;PREDICTIVE&amp;quot;&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp; &amp;nbsp;SPACECRAFT_ID = &amp;quot;Landsat5&amp;quot;&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp; &amp;nbsp;SENSOR_ID = &amp;quot;TM&amp;quot;&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp; &amp;nbsp;SENSOR_MODE = &amp;quot;SAM&amp;quot;&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp; &amp;nbsp;ACQUISITION_DATE = 1984-06-17&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp; &amp;nbsp;WRS_PATH = 14&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp; &amp;nbsp;STARTING_ROW = 28&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp; &amp;nbsp;ENDING_ROW = 28&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp; &amp;nbsp;BAND_COMBINATION = &amp;quot;1234567&amp;quot;&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp; &amp;nbsp;PRODUCT_UL_CORNER_LAT = 47.0025642&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp; &amp;nbsp;PRODUCT_UL_CORNER_LON = -74.4422657&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp; &amp;nbsp;PRODUCT_UR_CORNER_LAT = 46.9424675&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp; &amp;nbsp;PRODUCT_UR_CORNER_LON = -71.2498443&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp; &amp;nbsp;PRODUCT_LL_CORNER_LAT = 45.0693910&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp; &amp;nbsp;PRODUCT_LL_CORNER_LON = -74.4613828&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp; &amp;nbsp;PRODUCT_LR_CORNER_LAT = 45.0131896&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp; &amp;nbsp;PRODUCT_LR_CORNER_LON = -71.3780459&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp; &amp;nbsp;PRODUCT_UL_CORNER_MAPX = 542400.000&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp; &amp;nbsp;PRODUCT_UL_CORNER_MAPY = 5205600.000&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp; &amp;nbsp;PRODUCT_UR_CORNER_MAPX = 785400.000&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp; &amp;nbsp;PRODUCT_UR_CORNER_MAPY = 5205600.000&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp; &amp;nbsp;PRODUCT_LL_CORNER_MAPX = 542400.000&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp; &amp;nbsp;PRODUCT_LL_CORNER_MAPY = 4990800.000&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp; &amp;nbsp;PRODUCT_LR_CORNER_MAPX = 785400.000&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp; &amp;nbsp;PRODUCT_LR_CORNER_MAPY = 4990800.000&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp; &amp;nbsp;PRODUCT_SAMPLES_REF = 8101&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp; &amp;nbsp;PRODUCT_LINES_REF = 7161&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp; &amp;nbsp;PRODUCT_SAMPLES_THM = 4051&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp; &amp;nbsp;PRODUCT_LINES_THM = 3581&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp; &amp;nbsp;BAND1_FILE_NAME = &amp;quot;L5014028_02819840617_B10.TIF&amp;quot;&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp; &amp;nbsp;BAND2_FILE_NAME = &amp;quot;L5014028_02819840617_B20.TIF&amp;quot;&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp; &amp;nbsp;BAND3_FILE_NAME = &amp;quot;L5014028_02819840617_B30.TIF&amp;quot;&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp; &amp;nbsp;BAND4_FILE_NAME = &amp;quot;L5014028_02819840617_B40.TIF&amp;quot;&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp; &amp;nbsp;BAND5_FILE_NAME = &amp;quot;L5014028_02819840617_B50.TIF&amp;quot;&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp; &amp;nbsp;BAND6_FILE_NAME = &amp;quot;L5014028_02819840617_B60.TIF&amp;quot;&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp; &amp;nbsp;BAND7_FILE_NAME = &amp;quot;L5014028_02819840617_B70.TIF&amp;quot;&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp; &amp;nbsp;METADATA_L1_FILE_NAME = &amp;quot;L5014028_02819840617_MTL.txt&amp;quot;&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp; &amp;nbsp;CPF_FILE_NAME = &amp;quot;L5CPF19840401_19840630_04&amp;quot;&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp;END_GROUP = PRODUCT_METADATA&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp;GROUP = MIN_MAX_RADIANCE&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp; &amp;nbsp;LMAX_BAND1 = 169.000&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp; &amp;nbsp;LMIN_BAND1 = -1.520&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp; &amp;nbsp;LMAX_BAND2 = 333.000&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp; &amp;nbsp;LMIN_BAND2 = -2.840&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp; &amp;nbsp;LMAX_BAND3 = 264.000&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp; &amp;nbsp;LMIN_BAND3 = -1.170&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp; &amp;nbsp;LMAX_BAND4 = 221.000&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp; &amp;nbsp;LMIN_BAND4 = -1.510&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp; &amp;nbsp;LMAX_BAND5 = 30.200&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp; &amp;nbsp;LMIN_BAND5 = -0.370&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp; &amp;nbsp;LMIN_BAND6 = 1.238&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp; &amp;nbsp;LMAX_BAND6 = 15.303&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp; &amp;nbsp;LMAX_BAND7 = 16.500&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp; &amp;nbsp;LMIN_BAND7 = -0.150&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp;END_GROUP = MIN_MAX_RADIANCE&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp;GROUP = MIN_MAX_PIXEL_VALUE&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp; &amp;nbsp;QCALMAX_BAND1 = 255.0&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp; &amp;nbsp;QCALMIN_BAND1 = 1.0&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp; &amp;nbsp;QCALMAX_BAND2 = 255.0&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp; &amp;nbsp;QCALMIN_BAND2 = 1.0&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp; &amp;nbsp;QCALMAX_BAND3 = 255.0&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp; &amp;nbsp;QCALMIN_BAND3 = 1.0&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp; &amp;nbsp;QCALMAX_BAND4 = 255.0&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp; &amp;nbsp;QCALMIN_BAND4 = 1.0&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp; &amp;nbsp;QCALMAX_BAND5 = 255.0&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp; &amp;nbsp;QCALMIN_BAND5 = 1.0&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp; &amp;nbsp;QCALMIN_BAND6 = 1.0&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp; &amp;nbsp;QCALMAX_BAND6 = 255.0&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp; &amp;nbsp;QCALMAX_BAND7 = 255.0&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp; &amp;nbsp;QCALMIN_BAND7 = 1.0&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp;END_GROUP = MIN_MAX_PIXEL_VALUE&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp;GROUP = PRODUCT_PARAMETERS&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp; &amp;nbsp;CORRECTION_METHOD_GAIN_BAND1 = &amp;quot;CPF&amp;quot;&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp; &amp;nbsp;CORRECTION_METHOD_GAIN_BAND2 = &amp;quot;CPF&amp;quot;&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp; &amp;nbsp;CORRECTION_METHOD_GAIN_BAND3 = &amp;quot;CPF&amp;quot;&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp; &amp;nbsp;CORRECTION_METHOD_GAIN_BAND4 = &amp;quot;CPF&amp;quot;&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp; &amp;nbsp;CORRECTION_METHOD_GAIN_BAND5 = &amp;quot;CPF&amp;quot;&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp; &amp;nbsp;CORRECTION_METHOD_GAIN_BAND6 = &amp;quot;IC&amp;quot;&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp; &amp;nbsp;CORRECTION_METHOD_GAIN_BAND7 = &amp;quot;CPF&amp;quot;&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp; &amp;nbsp;CORRECTION_METHOD_BIAS = &amp;quot;IC&amp;quot;&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp; &amp;nbsp;SUN_AZIMUTH = 127.5756856&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp; &amp;nbsp;SUN_ELEVATION = 58.8618788&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp; &amp;nbsp;OUTPUT_FORMAT = &amp;quot;GEOTIFF&amp;quot;&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp;END_GROUP = PRODUCT_PARAMETERS&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp;GROUP = CORRECTIONS_APPLIED&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp; &amp;nbsp;STRIPING_BAND1 = &amp;quot;NONE&amp;quot;&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp; &amp;nbsp;STRIPING_BAND2 = &amp;quot;NONE&amp;quot;&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp; &amp;nbsp;STRIPING_BAND3 = &amp;quot;NONE&amp;quot;&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp; &amp;nbsp;STRIPING_BAND4 = &amp;quot;NONE&amp;quot;&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp; &amp;nbsp;STRIPING_BAND5 = &amp;quot;NONE&amp;quot;&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp; &amp;nbsp;STRIPING_BAND6 = &amp;quot;NONE&amp;quot;&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp; &amp;nbsp;STRIPING_BAND7 = &amp;quot;NONE&amp;quot;&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp; &amp;nbsp;BANDING = &amp;quot;N&amp;quot;&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp; &amp;nbsp;COHERENT_NOISE = &amp;quot;N&amp;quot;&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp; &amp;nbsp;MEMORY_EFFECT = &amp;quot;Y&amp;quot;&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp; &amp;nbsp;SCAN_CORRELATED_SHIFT = &amp;quot;Y&amp;quot;&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp; &amp;nbsp;INOPERABLE_DETECTORS = &amp;quot;N&amp;quot;&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp; &amp;nbsp;DROPPED_LINES = &amp;quot;N&amp;quot;&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp;END_GROUP = CORRECTIONS_APPLIED&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp;GROUP = PROJECTION_PARAMETERS&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp; &amp;nbsp;REFERENCE_DATUM = &amp;quot;WGS84&amp;quot;&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp; &amp;nbsp;REFERENCE_ELLIPSOID = &amp;quot;WGS84&amp;quot;&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp; &amp;nbsp;GRID_CELL_SIZE_THM = 60.000&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp; &amp;nbsp;GRID_CELL_SIZE_REF = 30.000&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp; &amp;nbsp;ORIENTATION = &amp;quot;NUP&amp;quot;&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp; &amp;nbsp;RESAMPLING_OPTION = &amp;quot;CC&amp;quot;&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp; &amp;nbsp;MAP_PROJECTION = &amp;quot;UTM&amp;quot;&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp;END_GROUP = PROJECTION_PARAMETERS&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp;GROUP = UTM_PARAMETERS&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp; &amp;nbsp;ZONE_NUMBER = 18&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39; &amp;nbsp;END_GROUP = UTM_PARAMETERS&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39;END_GROUP = L1_METADATA_FILE&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;#39;END&amp;#39;};&amp;nbsp;&lt;/p&gt;</description></item><item><title>Remove leading path and extension from filename</title><link>http://regexadvice.com/forums/thread/77796.aspx</link><pubDate>Tue, 08 Feb 2011 11:12:02 GMT</pubDate><guid isPermaLink="false">d291b357-6366-4006-9008-4266c301325a:77796</guid><dc:creator>scooterregex</dc:creator><slash:comments>8</slash:comments><comments>http://regexadvice.com/forums/thread/77796.aspx</comments><wfw:commentRss>http://regexadvice.com/forums/commentrss.aspx?SectionID=68&amp;PostID=77796</wfw:commentRss><description>&lt;p&gt;How can I extract a filename from a path construct, such as:&lt;/p&gt;&lt;p&gt;&amp;nbsp;/a/very/long path/filename.ext1.ext =&amp;gt; filename&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>my first one: valid french or Belgian Phone number</title><link>http://regexadvice.com/forums/thread/50655.aspx</link><pubDate>Tue, 03 Feb 2009 10:02:20 GMT</pubDate><guid isPermaLink="false">d291b357-6366-4006-9008-4266c301325a:50655</guid><dc:creator>megakiek</dc:creator><slash:comments>4</slash:comments><comments>http://regexadvice.com/forums/thread/50655.aspx</comments><wfw:commentRss>http://regexadvice.com/forums/commentrss.aspx?SectionID=68&amp;PostID=50655</wfw:commentRss><description>&lt;p&gt;they should match one of te following formats&lt;br /&gt;&amp;nbsp;+32(0)12&amp;nbsp;12 12 12&lt;br /&gt;or&lt;br /&gt;+33(0)1 12 12 12 12&lt;/p&gt;&lt;p&gt;&amp;nbsp;So this is what i tried to make but it seems not correct&lt;/p&gt;&lt;p&gt;^(\+32|\+33)[\s,]{1}(\(0\))[0-9]{0,1}[\s,]{1}[0-9]{2}[\s,][0-9]{2}[\s,][0-9]{2}[\s,][0-9]{0,2}$&lt;/p&gt;&lt;p&gt;could someone give me some&amp;nbsp;advice&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Help for Belgian phone numbers validation with regexp</title><link>http://regexadvice.com/forums/thread/50792.aspx</link><pubDate>Mon, 09 Feb 2009 13:02:24 GMT</pubDate><guid isPermaLink="false">d291b357-6366-4006-9008-4266c301325a:50792</guid><dc:creator>Geoffrey</dc:creator><slash:comments>3</slash:comments><comments>http://regexadvice.com/forums/thread/50792.aspx</comments><wfw:commentRss>http://regexadvice.com/forums/commentrss.aspx?SectionID=68&amp;PostID=50792</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;&lt;p&gt;I&amp;#39;m really not a regexp expert. I tried studying on it, but I just don&amp;#39;t succeed in producing my own working regexp... and I really need one to check for validity on Belgian phone numbers (both regular phone and cellphone numbers).&lt;/p&gt;&lt;p&gt;I have started from a regexp for us phone numbers on the site: &lt;a href="http://regexlib.com/Search.aspx?k=phone"&gt;http://regexlib.com/Search.aspx?k=phone&lt;/a&gt;, but the way Belgian phone numbers are entered on a web form is different from an US phone number.&lt;/p&gt;&lt;p&gt;In Belgian, regular phone numbers are 9 digits long, and they are entered as:&lt;/p&gt;&lt;p&gt;055 60 60 60, 02 555 56 56, 055/60 60 60, 055606060, 055/60.60.60, 055.60.60.60, 055 606 606, 055/606 606, 09/366 36 36&lt;/p&gt;&lt;p&gt;Cellphone numbers always start with 04, and are always 10 digits long:&lt;/p&gt;&lt;p&gt;0474 74 74 74, 0474 744 744, 0474/744 744, 0474.74.74.74, etc.&lt;/p&gt;&lt;p&gt;I really hope somebody could please help me with a working regexp... I&amp;#39;m already trying for some hours producing my own regexp, but unfortunately I just don&amp;#39;t succeed... :(&lt;/p&gt;&lt;p&gt;Thanks a lot!!&lt;/p&gt;&lt;p&gt;Kind regards,&lt;/p&gt;&lt;p&gt;Geoffrey Beulque&lt;/p&gt;</description></item><item><title>Working but ugly UK phone number regex.</title><link>http://regexadvice.com/forums/thread/77507.aspx</link><pubDate>Wed, 02 Feb 2011 05:36:41 GMT</pubDate><guid isPermaLink="false">d291b357-6366-4006-9008-4266c301325a:77507</guid><dc:creator>technicalbloke</dc:creator><slash:comments>3</slash:comments><comments>http://regexadvice.com/forums/thread/77507.aspx</comments><wfw:commentRss>http://regexadvice.com/forums/commentrss.aspx?SectionID=68&amp;PostID=77507</wfw:commentRss><description>&lt;p&gt;Hi there,&lt;/p&gt;&lt;p&gt;I want to validate UK phone numbers which are always 11 chars starting with a zero. That part is simple however, I would like to permit the user to also enter whitespace and/or hyphens. Opinion differs on where those characters should go so I&amp;#39;m happy to allow the user to do whatever they feel like and simply strip those chars out later. All the following should pass...&lt;/p&gt;&lt;p&gt;07816924120&lt;/p&gt;&lt;p&gt;078 1692 4120, 078-1692-4120&lt;/p&gt;&lt;p&gt;0781 692 4120, 0781-692-4120&lt;/p&gt;&lt;p&gt;07816 924 120, 07816-924-120 &lt;/p&gt;&lt;p&gt;07816 924120, 07816-924120 even...&lt;/p&gt;&lt;p&gt;0 7 8 1 6 9 2 4 1 2 0 or...&lt;/p&gt;&lt;p&gt;078-1692 4120 &lt;br /&gt;&lt;/p&gt;&lt;p&gt;Essentially as long as there&amp;#39;s 11 digits (no more, no less), no consecutive whitespaces or hyphens, the first digit is a zero and the second digit is a non-zero digit it should match, everything else should fail. Happily I can ignore country codes and suchlike.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;I&amp;#39;m would like the same regex to work in both python and javascript.&lt;/p&gt;&lt;p&gt;The regex I have does work but it&amp;#39;s very ugly/ repetitive...&lt;/p&gt;&lt;p&gt;&amp;nbsp;^[ -]{0,1}0[ -]{0,1}[1-9][ -]{0,1}[0-9][ -]{0,1}[0-9][ -]{0,1}[0-9][ -]{0,1}[0-9][ -]{0,1}[0-9][ -]{0,1}[0-9][ -]{0,1}[0-9][ -]{0,1}[0-9][ -]{0,1}[0-9]$&lt;/p&gt;&lt;p&gt;Told you!&lt;/p&gt;&lt;p&gt;I&amp;#39;m assuming there&amp;#39;s got to be a neater / more concise way of writing this, is that a fair assumption? and if so what&amp;#39;s the trick?&lt;/p&gt;&lt;p&gt;Cheers,&lt;/p&gt;&lt;p&gt;Roger Heathcote&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>