<rss version="2.0" xmlns:dn247="http://www.dot-net-guru.com/schemas/rss"><channel><title>.Net Guru: ASPFriends.com 'aspngregexp' list</title><link>http://www.dot-net-guru.com/247reference/__site/111</link><description>ASPFriends.com 'aspngregexp' list on .Net Guru.</description><generator>.Net Guru/WinFX 247 RSS Generator</generator><dn247:id>111</dn247:id><item><title>Validation (5 replies)</title><link>http://www.dot-net-guru.com/247reference/msgs/5/29871.aspx</link><guid>http://www.dot-net-guru.com/247reference/msgs/5/29871.aspx</guid><pubDate>05 Jun 2004 20:32:19</pubDate><description>Moved from [aspngarchitecture] to [aspngregexp] by G. Andrew Duthie (Moderator) graymad@att.net I am trying to validade a field that accepts only numeric characteres. If I use a RegularExpressionValidator with the property &amp;amp;quot;ValidationExpression [0 9]&amp;amp;quot;, it permits to insert only one numeric character (if I insert more than one, the validation Accuses error). Is there any other kind of ValidationExp...</description><dn247:id>29871</dn247:id><dn247:siteId>111</dn247:siteId></item><item><title>Example on RegExp and screen scape ? (3 replies)</title><link>http://www.dot-net-guru.com/247reference/msgs/27/136099.aspx</link><guid>http://www.dot-net-guru.com/247reference/msgs/27/136099.aspx</guid><pubDate>19 Aug 2002 15:41:00</pubDate><description>After I screen scrape a page, I need to get the address that is between this html block. 20 td width 3D&amp;amp;quot;275&amp;amp;quot; colspan 3D&amp;amp;quot;2&amp;amp;quot; font face 3D&amp;amp;quot;MS Sans Serif&amp;amp;quot; size 3D&amp;amp;quot;2&amp;amp;quot; P.O. Box 1507 /font /td I need to get &amp;amp;quot;P.O. Box 1507&amp;amp;quot; Any simple examples? (I have the HTML in a string called sHTML) The HTML is always exactly like this. Ian </description><dn247:id>136099</dn247:id><dn247:siteId>111</dn247:siteId></item><item><title>Regular Expression madness (5 replies)</title><link>http://www.dot-net-guru.com/247reference/msgs/26/131086.aspx</link><guid>http://www.dot-net-guru.com/247reference/msgs/26/131086.aspx</guid><pubDate>24 Jul 2002 00:59:00</pubDate><description>Moved from [aspngfreeforall] to [aspngregexp] by Tim Musschoot Tim.musschoot@rug.ac.be I'm going bananas here ... can someone tell me why this search isn't working? Regex: \[H1]. ?\[/H1] Text: [H1]This is a header[/H1][H1]Also a header[/H1] I'm trying to get 2 hits containing each of the 'tags'. Help?! ******************************************************************** Visit our Internet site at ...</description><dn247:id>131086</dn247:id><dn247:siteId>111</dn247:siteId></item><item><title>replacing \n (2 replies)</title><link>http://www.dot-net-guru.com/247reference/msgs/26/131085.aspx</link><guid>http://www.dot-net-guru.com/247reference/msgs/26/131085.aspx</guid><pubDate>18 Jul 2002 16:58:00</pubDate><description>hi all, Does anyone know the RegEx that would replace all instances of \n where there ISN'T a \r\n ? Basically I want to make sure every \n is actually \r\n, but I need to make sure I don't end up with \r\n\n. Make sense? Thanks, Dave</description><dn247:id>131085</dn247:id><dn247:siteId>111</dn247:siteId></item><item><title>ASPN Reg Expressions (5 replies)</title><link>http://www.dot-net-guru.com/247reference/msgs/26/131084.aspx</link><guid>http://www.dot-net-guru.com/247reference/msgs/26/131084.aspx</guid><pubDate>17 Jul 2002 15:43:00</pubDate><description>Usually you search for an occurance of a specific word or regexp and then replace it with something else. I wish to search for a NOT occurance of a word and then do something. I thought [^word] is what you use, is this correct. For example : objRegExp.Pattern &amp;amp;quot; a href http://([^localhost])//(.*?) &amp;amp;quot; strResult objRegExp.Replace (text,&amp;amp;quot; a href //test/$2 &amp;amp;quot;) For all occurances of NOT localhost I want t...</description><dn247:id>131084</dn247:id><dn247:siteId>111</dn247:siteId></item><item><title>Domain Name Reg Ex (2 replies)</title><link>http://www.dot-net-guru.com/247reference/msgs/26/131083.aspx</link><guid>http://www.dot-net-guru.com/247reference/msgs/26/131083.aspx</guid><pubDate>16 Jul 2002 15:08:00</pubDate><description>I need help with a Rex Ex that will check domain names. Right now I have: ^[a zA Z0 9\ \.] \.(com|edu|net|gov|org)$ but this does not catch &amp;amp;quot; domain.com&amp;amp;quot; I tried: ^[a zA Z0 9] [a zA Z0 9\ \.]?\.(com|edu|net|gov|org)$ but it does not seem to work properly. Any ideas? Thanks, Stewart Haddock </description><dn247:id>131083</dn247:id><dn247:siteId>111</dn247:siteId></item><item><title>Expression for "Allow only numbers" (3 replies)</title><link>http://www.dot-net-guru.com/247reference/msgs/26/131082.aspx</link><guid>http://www.dot-net-guru.com/247reference/msgs/26/131082.aspx</guid><pubDate>15 Jul 2002 21:39:00</pubDate><description>What would the expression be (for use in the RegExpressionValidator in ASP.NET) for &amp;amp;quot;Allow only numbers or nothing at all&amp;amp;quot;) 20 Thanks in advance, Ian </description><dn247:id>131082</dn247:id><dn247:siteId>111</dn247:siteId></item><item><title>Regex &amp; Match (2 replies)</title><link>http://www.dot-net-guru.com/247reference/msgs/26/131081.aspx</link><guid>http://www.dot-net-guru.com/247reference/msgs/26/131081.aspx</guid><pubDate>15 Jul 2002 14:31:00</pubDate><description>Hi All, When i use Regex &amp;amp;amp; Match classes ,i get an occurrence per line. If i have two occurrences , i can not get another occurrence. What is your suggestion to this problem. Thanks Askar Do You Yahoo!? Yahoo! Autos Get free new car price quotes</description><dn247:id>131081</dn247:id><dn247:siteId>111</dn247:siteId></item><item><title>Splitting items in a text box (4 replies)</title><link>http://www.dot-net-guru.com/247reference/msgs/25/125350.aspx</link><guid>http://www.dot-net-guru.com/247reference/msgs/25/125350.aspx</guid><pubDate>15 Jul 2002 03:25:08</pubDate><description>I want to split items in a multiline textbox, using the newline (\n) as the separator. So the following is in a text box: &amp;amp;quot;John&amp;amp;quot; &amp;amp;quot;Paul&amp;amp;quot; &amp;amp;quot;George&amp;amp;quot; &amp;amp;quot;Ringo&amp;amp;quot; which should be separated into the array: {&amp;amp;quot;John&amp;amp;quot;, &amp;amp;quot;Paul&amp;amp;quot;, &amp;amp;quot;George&amp;amp;quot;, &amp;amp;quot;Ringo&amp;amp;quot;} Instead I am getting: {&amp;amp;quot;John&amp;amp;quot;, &amp;amp;quot;&amp;amp;quot;, &amp;amp;quot;Paul&amp;amp;quot;, &amp;amp;quot;&amp;amp;quot;, &amp;amp;quot;George&amp;amp;quot;, &amp;amp;quot;&amp;amp;quot;, &amp;amp;quot;Ringo&amp;amp;quot;} In other words, the carriage return is being outputted in the output array. I am using the followin...</description><dn247:id>125350</dn247:id><dn247:siteId>111</dn247:siteId></item><item><title>Validating and extracting filenames (11 replies)</title><link>http://www.dot-net-guru.com/247reference/msgs/24/123375.aspx</link><guid>http://www.dot-net-guru.com/247reference/msgs/24/123375.aspx</guid><pubDate>11 Jul 2002 00:19:01</pubDate><description>I want to provide a facility for users to upload .gif, .jpeg, .jpg and bmp images to a site and then to extract the file name from a full path (e.g. C:\temp\image.gif). I need a regular expression to validate that the user has selected an suitable image to upload and that the path to it is a valid file path. Anyone here willing to provide some pointers? Cheers, Julian Voelcker The Virtual World (U...</description><dn247:id>123375</dn247:id><dn247:siteId>111</dn247:siteId></item><item><title>Regular Expression Validator for ASP.NET (4 replies)</title><link>http://www.dot-net-guru.com/247reference/msgs/24/123374.aspx</link><guid>http://www.dot-net-guru.com/247reference/msgs/24/123374.aspx</guid><pubDate>26 Jun 2002 15:43:00</pubDate><description>Moved from [aspngreuse] to [aspngregexp] by Ryan Trudelle Schwarz ryants@aspelite.com What would the expression be for a decimal value that could accept: 123.12 123.1 123 12 1 (An number of numbers to the left of the decimal, max of two to the right) </description><dn247:id>123374</dn247:id><dn247:siteId>111</dn247:siteId></item><item><title>Regular Expression: evaluating datetime (3 replies)</title><link>http://www.dot-net-guru.com/247reference/msgs/23/115107.aspx</link><guid>http://www.dot-net-guru.com/247reference/msgs/23/115107.aspx</guid><pubDate>14 Jun 2002 19:23:00</pubDate><description>html div style 'background color:' DIV P Hi, /P P I have the following code to evaluate datetime using regular expressions. I want to make sure that the user enters FONT color #ff0033 ONLY /FONT in the following format: FONT color #ff0033 '12/25/2002 13:33:33' /FONT which is FONT color #ff0033 military time /FONT . I think this answer will benifit many people who wants to validate datetime&amp;amp;amp;nbsp;fo...</description><dn247:id>115107</dn247:id><dn247:siteId>111</dn247:siteId></item><item><title>Searching for "Strings"...not working in ASP.NET RegularExpressionValidator (2 replies, VIP)</title><link>http://www.dot-net-guru.com/247reference/msgs/22/111828.aspx</link><guid>http://www.dot-net-guru.com/247reference/msgs/22/111828.aspx</guid><pubDate>07 Jun 2002 10:06:06</pubDate><description>I went to http://regexlib.com/RETester.aspx And I typed the expression &amp;amp;quot;foo$&amp;amp;quot; to test against &amp;amp;quot;nec.com.foo&amp;amp;quot; SUCCESS! Now I try this and it will not work in my asp.net! I just want to be able to search for strings. Preferably that aren't attached to the end of the expression. There are NO spaces at the end as I've checked. I basically really want &amp;amp;quot;nec\.com\.au&amp;amp;quot; case insensitive matching. If somebod...</description><dn247:id>111828</dn247:id><dn247:siteId>111</dn247:siteId><dn247:highlight>True</dn247:highlight></item><item><title>currency (2 replies, VIP)</title><link>http://www.dot-net-guru.com/247reference/msgs/22/110659.aspx</link><guid>http://www.dot-net-guru.com/247reference/msgs/22/110659.aspx</guid><pubDate>05 Jun 2002 16:06:00</pubDate><description>How would I change this regular expression so that it also allows an empty string? ^\$?([0 9]{1,3},([0 9]{3},)*[0 9]{3}|[0 9] )(.[0 9][0 9])?$ </description><dn247:id>110659</dn247:id><dn247:siteId>111</dn247:siteId><dn247:highlight>True</dn247:highlight></item><item><title>Using Replace - Not working right (2 replies)</title><link>http://www.dot-net-guru.com/247reference/msgs/20/101619.aspx</link><guid>http://www.dot-net-guru.com/247reference/msgs/20/101619.aspx</guid><pubDate>17 May 2002 21:51:38</pubDate><description>I am using the Regex.Replace function and it is not working properly. Here is the code. n dr[&amp;amp;quot;name&amp;amp;quot;].ToString(); msg Regex.Replace(msg, &amp;amp;quot;[[name]]&amp;amp;quot;, n); msg is a HTML email that will be sent. I am trying to replace the &amp;amp;quot;[[name]]&amp;amp;quot; with the name from the data base but these are the results: &amp;amp;quot;Your name is going to be inserted right here: [[namDot Net Guru] . ..............&amp;amp;quot; It replaced the &amp;amp;quot;e]&amp;amp;quot; but no the res...</description><dn247:id>101619</dn247:id><dn247:siteId>111</dn247:siteId></item><item><title>domain (3 replies)</title><link>http://www.dot-net-guru.com/247reference/msgs/20/102255.aspx</link><guid>http://www.dot-net-guru.com/247reference/msgs/20/102255.aspx</guid><pubDate>17 May 2002 19:52:00</pubDate><description>hi, I'm looking for regEx code to do the following: http://aaaaa.bbbbb.domain.com I need to capture the first and second portions of the URL, aaaaaa and bbbbb ... the length will vary. help is appreciated!</description><dn247:id>102255</dn247:id><dn247:siteId>111</dn247:siteId></item><item><title>Date + Time Validator (4 replies)</title><link>http://www.dot-net-guru.com/247reference/msgs/19/99712.aspx</link><guid>http://www.dot-net-guru.com/247reference/msgs/19/99712.aspx</guid><pubDate>13 May 2002 22:11:00</pubDate><description>Hi, I'm trying to get a regex that will validate a date and time. The date has to be there, but the time can be an optional entry. I've looked through regexlib.com, but I can't seem to find exactly what I'm looking for. I've tried combining a couple to get what I need, but I'm not sure of all the syntax so I wasn't able to get it to work. Here's what I've tried (taken from regexlib.com): ^((((0[13...</description><dn247:id>99712</dn247:id><dn247:siteId>111</dn247:siteId></item><item><title>Validating Time (8 replies, VIP)</title><link>http://www.dot-net-guru.com/247reference/msgs/19/95233.aspx</link><guid>http://www.dot-net-guru.com/247reference/msgs/19/95233.aspx</guid><pubDate>03 May 2002 06:08:00</pubDate><description>Regex gurus, I need a regular express that I can throw into a RegularExpressValidator control that will validate time. Here is the format I need.... hh:mm AM/PM You assistance is much appreciated. Alex AspFriends.com Moderation Team Microsoft MVP ASP.NET *********************************************************** Translate C# code to VB.NET codet at http://aspalliance.com/aldotnet/examples/transla...</description><dn247:id>95233</dn247:id><dn247:siteId>111</dn247:siteId><dn247:highlight>True</dn247:highlight></item><item><title>Good online resources? (3 replies)</title><link>http://www.dot-net-guru.com/247reference/msgs/17/85626.aspx</link><guid>http://www.dot-net-guru.com/247reference/msgs/17/85626.aspx</guid><pubDate>18 Apr 2002 01:04:00</pubDate><description>Are there any good online tutorials and references on Regular Expressions on the web? TIA</description><dn247:id>85626</dn247:id><dn247:siteId>111</dn247:siteId></item><item><title>The first 3 sentences (2 replies)</title><link>http://www.dot-net-guru.com/247reference/msgs/17/85625.aspx</link><guid>http://www.dot-net-guru.com/247reference/msgs/17/85625.aspx</guid><pubDate>18 Apr 2002 00:02:00</pubDate><description>AC I am trying to write a regular expression which extracts the first 3 sentences (that is, all the text up to the third full stop and/or punctuation mark [!?]) from a text string. Any tips? </description><dn247:id>85625</dn247:id><dn247:siteId>111</dn247:siteId></item><item><title>excluding characters... (2 replies, VIP)</title><link>http://www.dot-net-guru.com/247reference/msgs/16/81923.aspx</link><guid>http://www.dot-net-guru.com/247reference/msgs/16/81923.aspx</guid><pubDate>12 Apr 2002 06:24:42</pubDate><description>Moved from [aspregexp] to [aspngregexp] by Charles M. Carroll charlesmarkcarroll@yahoo.com Hi All, I am writing validation for an email address. First off, i want to make sure there isn't a problem using 2 RegularExpressionValidator's for one field.... Other than that this is what I have, the first works fine, but the second, where I'm trying to exclude &amp;amp;quot;:&amp;amp;quot;, I can't figure out the syntax.... ASP:t...</description><dn247:id>81923</dn247:id><dn247:siteId>111</dn247:siteId><dn247:highlight>True</dn247:highlight></item><item><title>Problem with Replace (5 replies)</title><link>http://www.dot-net-guru.com/247reference/msgs/15/77026.aspx</link><guid>http://www.dot-net-guru.com/247reference/msgs/15/77026.aspx</guid><pubDate>04 Apr 2002 03:19:00</pubDate><description>I've written a Replace routine using the code below. The idea is to replace the contents of the sourceText variable with a modified version of the searchText variable. The problem the code goes past the Replace command, but does not fire at all. The returned newText variable is an unmodified version of sourceText. Is there something I'm missing? //create a regular expression with the match string ...</description><dn247:id>77026</dn247:id><dn247:siteId>111</dn247:siteId></item><item><title>Replacing with RegEx (2 replies)</title><link>http://www.dot-net-guru.com/247reference/msgs/14/74247.aspx</link><guid>http://www.dot-net-guru.com/247reference/msgs/14/74247.aspx</guid><pubDate>29 Mar 2002 14:27:00</pubDate><description>I have a specific pattern I would like to replace using RegEx.Replace(). In a nutshell, I would like to replace: [6 of ANY character or whitespace]*[any # of ANY character or whitespace] (in other words any string that has a '*' in the 7th character position in the string) I want to add the &amp;amp;quot; COMMENT &amp;amp;quot; string before the '*&amp;amp;quot; and the /COMMENT at the end of the string. So, I would like to replace the...</description><dn247:id>74247</dn247:id><dn247:siteId>111</dn247:siteId></item><item><title>Regular Expressions with ASP.NET (3 replies)</title><link>http://www.dot-net-guru.com/247reference/msgs/13/67937.aspx</link><guid>http://www.dot-net-guru.com/247reference/msgs/13/67937.aspx</guid><pubDate>15 Mar 2002 06:33:00</pubDate><description>Moved from [aspclient] to [aspngregexp] by Ken Schaefer ken@adOpenStatic.com I am making a few textbox controls whos values will be added together( so the input will obviously have to be in the form of an integer). I will also have form validation controls in this form, and I don't want the add button to cause validation. With that, i am going to make a server side validation script that will add ...</description><dn247:id>67937</dn247:id><dn247:siteId>111</dn247:siteId></item><item><title>Regular Expression (7 replies)</title><link>http://www.dot-net-guru.com/247reference/msgs/13/67936.aspx</link><guid>http://www.dot-net-guru.com/247reference/msgs/13/67936.aspx</guid><pubDate>13 Mar 2002 13:00:00</pubDate><description>Moved from [aspngfreeforall] to [aspngregexp] by Yannick Smits dotnet@stepcompany.com Could someone please let me have the regex's to validate a password that: Must contain between 6 and 10 chars (0 9, a z, A Z) Must contain 1 or more of @#%^&amp;amp;amp;*() Have tried dozens of ways but can't quite get it. Thanks Tony Stephenson </description><dn247:id>67936</dn247:id><dn247:siteId>111</dn247:siteId></item><item><title>Changing case (7 replies)</title><link>http://www.dot-net-guru.com/247reference/msgs/12/61441.aspx</link><guid>http://www.dot-net-guru.com/247reference/msgs/12/61441.aspx</guid><pubDate>06 Mar 2002 23:02:55</pubDate><description>I want to write a regexp that locates matches and then sets the matched strings to lower case. It looks like on unix boxed there's a method called lc() to do this. What's the equivalent in the .NET world of regexp? Ollie </description><dn247:id>61441</dn247:id><dn247:siteId>111</dn247:siteId></item><item><title>Replace problem (5 replies)</title><link>http://www.dot-net-guru.com/247reference/msgs/9/48970.aspx</link><guid>http://www.dot-net-guru.com/247reference/msgs/9/48970.aspx</guid><pubDate>09 Feb 2002 13:14:28</pubDate><description>Hi, Why doesn't the following line remove all link href ....etc tags from my inputString? System.Text.RegularExpressions.Regex.Replace(inputString,@&amp;amp;quot; link (.*) &amp;amp;quot;,&amp;amp;quot;&amp;amp;quot;); Thanks, Yannick Smits </description><dn247:id>48970</dn247:id><dn247:siteId>111</dn247:siteId></item><item><title>RegEx gurus.. (6 replies)</title><link>http://www.dot-net-guru.com/247reference/msgs/9/49089.aspx</link><guid>http://www.dot-net-guru.com/247reference/msgs/9/49089.aspx</guid><pubDate>07 Feb 2002 14:18:00</pubDate><description>Moved from [aspngfreeforall] to [aspngregexp] by Alex Lowe webmaster@asp grandrapids.net Hi All, I've got to do some parsing, of a LARGE html page. Inside of that page is a bunch of javascript populating an array like: Product0[0] &amp;amp;quot;Long Sleeve Shirts\&amp;amp;quot;,\&amp;amp;quot;lsShirt&amp;amp;quot;; Product0[1] &amp;amp;quot;Short Sleeve Shirts\&amp;amp;quot;,\&amp;amp;quot;ssShirt&amp;amp;quot;; Product0[2] &amp;amp;quot;Women's Pants\&amp;amp;quot;,\&amp;amp;quot;wPants&amp;amp;quot;; Product0[3] &amp;amp;quot;Men's Pants\&amp;amp;quot;,\&amp;amp;quot;mPants&amp;amp;quot;; Product0[4...</description><dn247:id>49089</dn247:id><dn247:siteId>111</dn247:siteId></item><item><title>Regex Q (5 replies, VIP)</title><link>http://www.dot-net-guru.com/247reference/msgs/9/47781.aspx</link><guid>http://www.dot-net-guru.com/247reference/msgs/9/47781.aspx</guid><pubDate>05 Feb 2002 15:51:00</pubDate><description>Copied from [aspngfreeforall] to [aspngregexp] by Alex Lowe webmaster@asp grandrapids.net Hi all Could someone double check this for me please: strEmail 3D txtEmail.Text strPattern 3D &amp;amp;quot;^[\w \.] \@([\w ] \.) \w $&amp;amp;quot; It should accept an email address of someone@tta int.co.uk But when I try a DNS check using System.Net it fails. Other emails are successful though so I know the DNS checker is working. I...</description><dn247:id>47781</dn247:id><dn247:siteId>111</dn247:siteId><dn247:highlight>True</dn247:highlight></item><item><title>reference for RegEx syntax? (4 replies)</title><link>http://www.dot-net-guru.com/247reference/msgs/8/42978.aspx</link><guid>http://www.dot-net-guru.com/247reference/msgs/8/42978.aspx</guid><pubDate>28 Jan 2002 13:11:00</pubDate><description>Copied from [aspngcs] to [aspngregexp] by Charles M. Carroll charlesmarkcarroll@yahoo.com This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. B 3095017622 4761820 Content type: text/plain; charset &amp;amp;quot;US ASCII&amp;amp;quot; Content transfer encoding: 7bit does anybody know of a good reference for creating regular expressions for u...</description><dn247:id>42978</dn247:id><dn247:siteId>111</dn247:siteId></item><item><title>URL validation using RegExp (4 replies)</title><link>http://www.dot-net-guru.com/247reference/msgs/8/42628.aspx</link><guid>http://www.dot-net-guru.com/247reference/msgs/8/42628.aspx</guid><pubDate>25 Jan 2002 09:08:00</pubDate><description>Hi All, I need a javascript RegExp code to validate URL , with the following as madatory either (http:// | https://) and followed by www.abc.com 2) A a number check which will accept say 12.05 and Should not accept &amp;amp;quot;12.&amp;amp;quot; or &amp;amp;quot;12.05.01&amp;amp;quot; Thanks and Regards, sathish</description><dn247:id>42628</dn247:id><dn247:siteId>111</dn247:siteId></item><item><title>Retrieving tag attributes (10 replies, VIP)</title><link>http://www.dot-net-guru.com/247reference/msgs/8/42343.aspx</link><guid>http://www.dot-net-guru.com/247reference/msgs/8/42343.aspx</guid><pubDate>25 Jan 2002 00:52:09</pubDate><description>I want to use Custom Meta tags in my HTML to hold special information about the pages. Then I want to retrieve this information to store externally so I can do things like search it, etc. For example: meta name &amp;amp;quot;myCustomTag&amp;amp;quot; content &amp;amp;quot;this is the value&amp;amp;quot; Is using regular expressions the way to go to retreive this data? If it is, can anyone give me and example of how I might do this? Thanks Devin</description><dn247:id>42343</dn247:id><dn247:siteId>111</dn247:siteId><dn247:highlight>True</dn247:highlight></item><item><title>RegularExpressionValidator (5 replies, VIP)</title><link>http://www.dot-net-guru.com/247reference/msgs/7/38038.aspx</link><guid>http://www.dot-net-guru.com/247reference/msgs/7/38038.aspx</guid><pubDate>16 Jan 2002 20:21:56</pubDate><description>Moved from [aspngfreeforall] to [aspngregexp] by Charles M. Carroll darthcarroll@asplists.com Is it possible to make sure that the value is a number when the user is filling out a form by using RegularExpressionValidator? I'm trying to use it, but I don't know how to build the right ValidationExpression. Or there's another easier way to do it? Thanks in advanced, Rodrigo Tetsuo Aoki Web Master ATI...</description><dn247:id>38038</dn247:id><dn247:siteId>111</dn247:siteId><dn247:highlight>True</dn247:highlight></item><item><title>RegEx Parsing Error (2 replies, VIP)</title><link>http://www.dot-net-guru.com/247reference/msgs/7/37068.aspx</link><guid>http://www.dot-net-guru.com/247reference/msgs/7/37068.aspx</guid><pubDate>14 Jan 2002 20:45:23</pubDate><description>I am trying to screen scrape some data from weather.com, but when I load the Response Stream into a Regex object as the string pattern, it gives this exception at run time: Server Error in '/myApp' Application parsing &amp;amp;quot;.... the source of weather.com page goes here....&amp;amp;quot; Source Error Line 55: Regex regexp new Regex(result); Heres my scrapeing code: string result; WebResponse objResponse; WebRequest ...</description><dn247:id>37068</dn247:id><dn247:siteId>111</dn247:siteId><dn247:highlight>True</dn247:highlight></item><item><title>RegExp (9 replies)</title><link>http://www.dot-net-guru.com/247reference/msgs/7/36780.aspx</link><guid>http://www.dot-net-guru.com/247reference/msgs/7/36780.aspx</guid><pubDate>11 Jan 2002 06:02:00</pubDate><description>Hi All, I need to validated a textbox using the regularexpressionvalidtor in asp.net, following are the valid allowed characters (a z, A Z, 0 9, single quotes, brackets, , ampersand and space). Can anyone suggest a RegExp code to validate the above requirement. Regards, Sathish</description><dn247:id>36780</dn247:id><dn247:siteId>111</dn247:siteId></item><item><title>Any ideas on this RegExp? (7 replies, VIP)</title><link>http://www.dot-net-guru.com/247reference/msgs/7/36779.aspx</link><guid>http://www.dot-net-guru.com/247reference/msgs/7/36779.aspx</guid><pubDate>07 Jan 2002 05:53:00</pubDate><description>Is there anything in RegExp that would work for the following? 20 Want to let everything pass thru, EXCEPT the word JAVA (no need to be careful regarding case sensitivity). 20 20 The RegExp should *NOT match* the following: (it's important that ONLY this one *NOT match*) The language is: JAVA 20 The RegExp should *match* the following: The language is: C The language is: VB.NET The language is: Pa...</description><dn247:id>36779</dn247:id><dn247:siteId>111</dn247:siteId><dn247:highlight>True</dn247:highlight></item><item><title>Multiple RegexOptions (2 replies)</title><link>http://www.dot-net-guru.com/247reference/msgs/6/30822.aspx</link><guid>http://www.dot-net-guru.com/247reference/msgs/6/30822.aspx</guid><pubDate>19 Dec 2001 00:33:12</pubDate><description>Copied from [aspngcs] to [aspngregexp] by Charles M. Carroll darthcarroll@asplists.com This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. NextPart 001 01C187E3.56AF75B0 Content Type: text/plain; charset &amp;amp;quot;iso 8859 1&amp;amp;quot; How do I specify multiple RegexOptions when calling the Regex class constructor? Devin NextPart 001...</description><dn247:id>30822</dn247:id><dn247:siteId>111</dn247:siteId></item><item><title>Using RegExp object in .NET (4 replies)</title><link>http://www.dot-net-guru.com/247reference/msgs/4/24532.aspx</link><guid>http://www.dot-net-guru.com/247reference/msgs/4/24532.aspx</guid><pubDate>26 Nov 2001 11:55:05</pubDate><description>Copied from [aspngwebservices] to [aspngregexp] by Charles M. Carroll darthcarroll@aspfriends.com Hi everyone, I'm building a Web service for internal use which reporters can use to &amp;amp;quot;wash&amp;amp;quot; their stories and have the thier content be returned treated with formatted hyperlinks, based on a collection of predefined HREFs (mainly just organizational sites and past storylines we've done), if certain tex...</description><dn247:id>24532</dn247:id><dn247:siteId>111</dn247:siteId></item><item><title>help on regexp! (6 replies)</title><link>http://www.dot-net-guru.com/247reference/msgs/3/18019.aspx</link><guid>http://www.dot-net-guru.com/247reference/msgs/3/18019.aspx</guid><pubDate>03 Nov 2001 20:03:00</pubDate><description>Hi! I have to test some phones entered into a textarea. So for example someone enter this: textarea (123) 2334 1222 (124) 2334 1222 /textarea What I want to check is that the user enter a valid phone with this regex ((\(\d{3}\) ?)|(\d{3} ))?\d{4} \d{4} but also I want to check that the number of phones entered to be 10 between phones there are Enters so this is correct textarea (123) 2334 1222 (12...</description><dn247:id>18019</dn247:id><dn247:siteId>111</dn247:siteId></item><item><title>How to match a range of numbers? (4 replies)</title><link>http://www.dot-net-guru.com/247reference/msgs/3/17325.aspx</link><guid>http://www.dot-net-guru.com/247reference/msgs/3/17325.aspx</guid><pubDate>01 Nov 2001 17:10:56</pubDate><description>What I want to do is to match integers between 0 to 3567. I have problem doing this since i only know how to match numbers between 0 and 9999 &amp;amp;quot;^[0 9]{1,4}&amp;amp;quot;. Can anyone help me... or tell me its impossible? :) Thank you! ................................................................ SVERIGES ENKLASTE E POSTADRESS! http://www.sverige.nu SVERIGES NYA ADRESSREGISTER! http://www.adress.nu </description><dn247:id>17325</dn247:id><dn247:siteId>111</dn247:siteId></item><item><title>Replace &lt;BR&gt; with hex 0d 0a (3 replies)</title><link>http://www.dot-net-guru.com/247reference/msgs/3/17229.aspx</link><guid>http://www.dot-net-guru.com/247reference/msgs/3/17229.aspx</guid><pubDate>31 Oct 2001 22:50:00</pubDate><description>How can I replace the search for &amp;amp;quot; BR &amp;amp;quot; with the hex representation of a line feed (\0d\0a) for text files? If I pass &amp;amp;quot;\x0d\x0a&amp;amp;quot; in the Replace function, it simply replaces the BR with a &amp;amp;quot;\x0d\x0a&amp;amp;quot;. How can I force it to interpret the actual hex values and write those to the string, which I am sending to a .txt file? Thanks, ROB </description><dn247:id>17229</dn247:id><dn247:siteId>111</dn247:siteId></item><item><title>Is there a RegExp to require a value? (3 replies, VIP)</title><link>http://www.dot-net-guru.com/247reference/msgs/2/12582.aspx</link><guid>http://www.dot-net-guru.com/247reference/msgs/2/12582.aspx</guid><pubDate>17 Oct 2001 00:25:42</pubDate><description>Hi List, I'm very new to Regular Expressions, so please excuse me if I'm missing something very basic. I'm using a RegExp validator control around an email address textbox (works great), and I'm wondering if there's a way to also specify in the RegExp that this field is required. I'm just trying to avoid using both a RegExp validator and a required field validator on the same control is this possi...</description><dn247:id>12582</dn247:id><dn247:siteId>111</dn247:siteId><dn247:highlight>True</dn247:highlight></item><item><title>Help me to improve this URL replacing RegExp (4 replies)</title><link>http://www.dot-net-guru.com/247reference/msgs/2/10030.aspx</link><guid>http://www.dot-net-guru.com/247reference/msgs/2/10030.aspx</guid><pubDate>14 Oct 2001 01:34:15</pubDate><description>I have this code in ASP.NET: Function FetchURL( strMessage As String ) Dim strPattern As String &amp;amp;quot;(? url http://(?:[\w ] \.) [\w ] (?:/[\w ./?%&amp;amp;amp;~ ]*[^.])?)&amp;amp;quot; Dim strReplace As String &amp;amp;quot; a href '${url}' target ' blank' ${url} /a &amp;amp;quot; Dim strInput As String strMessage Dim strResult As String strResult Regex.Replace( strInput, strPattern, strReplace ) strPattern &amp;amp;quot;(? !http://)(? url www\.(?:[\w ] \.) [\w ] ...</description><dn247:id>10030</dn247:id><dn247:siteId>111</dn247:siteId></item><item><title>backslash in replace (2 replies)</title><link>http://www.dot-net-guru.com/247reference/msgs/2/10024.aspx</link><guid>http://www.dot-net-guru.com/247reference/msgs/2/10024.aspx</guid><pubDate>14 Oct 2001 01:34:14</pubDate><description>Hi, I can't get the following to work: Regex.Replace(&amp;amp;quot;d:\\step.com\\www&amp;amp;quot;, &amp;amp;quot;com\\www&amp;amp;quot;, &amp;amp;quot;com&amp;amp;quot;) ; I also tried with the @ method. It keeps giving me: d:\step.com\www as a result instead of 'd:\step.com' In VB I got it to work with: Replace(&amp;amp;quot;d:\step.com\www&amp;amp;quot;, &amp;amp;quot;com\\www&amp;amp;quot;, &amp;amp;quot;com&amp;amp;quot;) But not in C# thanks, Yannick </description><dn247:id>10024</dn247:id><dn247:siteId>111</dn247:siteId></item><item><title>convert to hyperlink (6 replies)</title><link>http://www.dot-net-guru.com/247reference/msgs/2/10022.aspx</link><guid>http://www.dot-net-guru.com/247reference/msgs/2/10022.aspx</guid><pubDate>14 Oct 2001 01:34:13</pubDate><description>How would I search a string for URL's (http:// and www.) and than replace the URL's with the HTML hyperlink around it ( a href ... /a )? Any help appreciated, Yannick Smits </description><dn247:id>10022</dn247:id><dn247:siteId>111</dn247:siteId></item><item><title>(.*) ? (7 replies)</title><link>http://www.dot-net-guru.com/247reference/msgs/2/10034.aspx</link><guid>http://www.dot-net-guru.com/247reference/msgs/2/10034.aspx</guid><pubDate>08 Oct 2001 14:11:00</pubDate><description>Hi Everyone.. I'm trying to read in a file (sample below) and sort the data (to eventually be put in a database) based upon whether it's &amp;amp;quot;Local Path&amp;amp;quot;, &amp;amp;quot;Remote Path&amp;amp;quot;, etc. I read in all the lines separately. I get rid of the first few lines (the ones beginning with &amp;amp;quot;//&amp;amp;quot;) with a select case statement and then have case else Dim Expr as string&amp;amp;amp;#&amp;amp;quot;:; (.*)&amp;amp;quot; Dim SearchReg as New RegEx(Expr) Dim SearchMat...</description><dn247:id>10034</dn247:id><dn247:siteId>111</dn247:siteId></item><item><title>Regular Expressions (7 replies)</title><link>http://www.dot-net-guru.com/247reference/msgs/2/10033.aspx</link><guid>http://www.dot-net-guru.com/247reference/msgs/2/10033.aspx</guid><pubDate>01 Oct 2001 23:16:00</pubDate><description>Copied from [aspngibuyspy] to [aspngregexp] by darthcarroll@asplists.com This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. NextPart 001 01C14AD0.446EA740 Content Type: text/plain Hi I am doing some modifications on the user handling part of the store. I need to verify when adding a user that the username is betwe...</description><dn247:id>10033</dn247:id><dn247:siteId>111</dn247:siteId></item><item><title>No Frames (3 replies, VIP)</title><link>http://www.dot-net-guru.com/247reference/msgs/2/10032.aspx</link><guid>http://www.dot-net-guru.com/247reference/msgs/2/10032.aspx</guid><pubDate>18 Sep 2001 21:00:00</pubDate><description>Is it possible to have a page split into two regions with different URLS for each without using frames? For example... I need to have a menu bar stay on the screen even if I call &amp;amp;quot;Yahoo&amp;amp;quot; However if I use frames my menu will not drop down over both frames. </description><dn247:id>10032</dn247:id><dn247:siteId>111</dn247:siteId><dn247:highlight>True</dn247:highlight></item><item><title>Regular Expression code to make URLs as &lt;a href&gt;s (3 replies)</title><link>http://www.dot-net-guru.com/247reference/msgs/2/10028.aspx</link><guid>http://www.dot-net-guru.com/247reference/msgs/2/10028.aspx</guid><pubDate>24 Aug 2001 20:35:00</pubDate><description>I need an example of how to implement a routine, based on a regular expression that replaces all URLs in a string with a linked one. Something Like: ' strNew should be ' &amp;amp;quot;I am not in a href 'http://www.learnasp.com' ' http://www.learnasp.com /a now&amp;amp;quot; strNew MakeThisLink( &amp;amp;quot;I am not in http://www.learnasp.com right now&amp;amp;quot; ) Thanks in advance, Felipe Coury </description><dn247:id>10028</dn247:id><dn247:siteId>111</dn247:siteId></item><item><title>Word boundaries (5 replies, VIP)</title><link>http://www.dot-net-guru.com/247reference/msgs/2/10027.aspx</link><guid>http://www.dot-net-guru.com/247reference/msgs/2/10027.aspx</guid><pubDate>18 Jul 2001 13:00:00</pubDate><description>I'm trying to come up with a regex that matches a dollar amount, i.e. $12.00 or $1.50 but not $1.234 \$[0 9] (\.[0 9][0 9])? works up to a point, but it matches more than 2 decimal digits. I want it to fail if there are more than 2, so I figured that \b word boundary would work. \b\$[0 9] (\.[0 9][0 9])?\b but it doesn't. If I remove the \$ it works as I excpect, but the escaped dollar seems to pu...</description><dn247:id>10027</dn247:id><dn247:siteId>111</dn247:siteId><dn247:highlight>True</dn247:highlight></item></channel></rss>