Todotnet Blog

Met de blik op Visual Studio 2005 en verder...

  Home :: Contact :: Syndication  :: Login
  69 Posts :: 3 Stories :: 150 Comments :: 9 Trackbacks

News

Nee, het is gisteren niet zo laat geworden. Het Tech-Ed feestje was wel aardig, maar ik ben toch maar wat vroeger naar huis gegaan. Dus tijdens de sessie van Roy Osherove over reguliere expressies was ik redelijk wakker. En dat is, bij zo'n onderwerp, wel zo prettig.

Nu is het geen geheim dat reguliere expressies erg krachtig zijn. Maar ook... onleesbaar. Dat wil zeggen, ik kan het bijna niet lezen. Ik gebruik het niet dagelijks, en opbouwen van een reguliere expressie 'from scratch' valt dan niet mee. André Obelink heeft er een artikel over staan.

We gebruiken reguliere expressies voor:

  1. validatie van tekst
  2. manipulatie van tekst
  3. parsen van tekst (voor zoeken, screen scraping, gegevensverzameling)

Een paar lijstjes van de slides.

Enclosing Alternatives with []

  • [Cc]                     Capital or lowercase c
  • [A-Z]                   Any capital letter A through Z
  • [A-Za-z]              Any capital or lowercase letter
  • [0-9]                    Any digit 0 through 9
  • [A-Za-z0-9]        Any letter or digit
  • [0-9.+-&=%]      Any digit or special char listed

frequency operators

  • ?             0 or 1
  • *             0 or more
  • +             1 or more

Convenience expressions

  • \d             Any digit
  • \D             Any non-digit
  • \s             Any whitespace character (such as a space or tab)
  • \S             Any character other than a whitespace character
  • \w             Any number or letter
  • \W             Any character other than a number or letter

Roy laat een aantal simpele, oké niet allemaal even simpel, maar doeltreffende demos zien. Waar het eigenlijk op neer komt is dat je reguliere expressies moet leren, zoals je een taal als SQL, XPath of XSLT leert. En zo beschouwd, is de drempel om reguliere expressies gebruiken niet meer zo hoog.

Handige links:

 

posted on Friday, July 08, 2005 9:21 AM

Feedback

# Get a Discount for Adobe Creative Suite 4 Master Collection for MAC 3/8/2009 11:07 AM expepride
<b><a href=http://agronsofe.com/>All Popular Softwares For PC and MAC</a>
All European Languages

<u>The financial crisis? SAVE YOUR MONEY!
We well send you a Special code and you will get a DISCOUNT of up to 30% for our all software - D33W-3333 !</u>
<a href=http://softymote.com/>microsoft office
</a>
-------------------------------------------------------------------------------------
<a href=http://agronsofe.com/catalog.php?id=12>Windows XP Professional With SP2 Full Version</a> $59.95
<a href=http://softymote.com/catalog.php?id=396>Adobe Creative Suite 4 Master Collection</a> $329.95
<a href=http://agronsofe.com/catalog.php?id=343>Office Enterprise 2007</a> $79.95
<a href=http://softymote.com/catalog.php?id=350>Windows Vista Ultimate 32-bit</a> $79.95
<a href=http://softymote.com/catalog.php?id=390>Adobe Photoshop CS4 Extended</a> $119.95
<a href=http://agronsofe.com/catalog.php?id=411>Adobe Creative Suite 4 Master Collection for MAC</a> $329.95
<a href=http://softymote.com/catalog.php?id=399>Adobe Acrobat 9 Pro Extended</a> $99.95
<a href=http://softymote.com/catalog.php?id=63>Office 2003 Professional (including Publisher 2003)</a> $59.95
<a href=http://agronsofe.com/catalog.php?id=362>AutoCAD 2009 32 and 64 bit</a> $169.95
<a href=http://softymote.com/catalog.php?id=388>Microsoft Office 2008 Standart Edition for Mac</a> $99.95
<a href=http://agronsofe.com/catalog.php?id=395>Adobe Creative Suite 4 Design Premium</a> $259.95
<a href=http://agronsofe.com/catalog.php?id=406>Adobe Photoshop CS4 Extended for MAC</a> $119.95
-------------------------------------------------------------------------------------
<u>The financial crisis? SAVE YOUR MONEY!
We well send you a Special code and you will get a DISCOUNT of up to 30% for our all software - D33W-3333 !</u>
<a href=http://agronsofe.com/>adobe software students
</a>

No torrents - no claim. Read our <a href=http://softymote.com/docs/testimonials>Testimonials</a>.</b>

# ?V?A???X ”?”„ 8/7/2009 12:04 AM lalpiphon
ƒVƒAƒŠƒXù :-# <a hrefl="http://www.kennavi.net/smf/index.php?topic=1228.0">ƒVƒAƒŠƒX Œø‚©‚È‚¢</a>
<a href=http://viagura.wikidot.com>ƒoƒCƒAƒOƒ‰</a> :-) ƒoƒCƒAƒOƒ‰ ƒVƒAƒŠƒX ƒVƒAƒŠƒXù

# интим фото казань 7/7/2010 1:51 AM qsqkattmokawa
http://mckeon.zaochnik.pp.ua/ ???? ???????? ??????????
http://kelvin.zaochnik.pp.ua/ ????? ??????? ???????
http://nouwens.zaochnik.pp.ua/ ????????? ????? ?????? ?????
http://morrell.zaochnik.pp.ua/ ?????? ????????? ??????
http://wathen.zaochnik.pp.ua/ ???? ????????? ??????????

# Buy Viagra 7/27/2010 11:00 PM Viagra_Nowrx
<a href=http://drugstorerx.medsjoy.biz>Buy sildenafil Online</a>
If you are older than age 65, or have serious liver or kidney problems, your doctor may start you at the lowest dose (25 mg) of VIAGRA. If you are taking protease inhibitors, such as for the treatment of HIV, your doctor may recommend a 25-mg dose and may limit you to a maximum single dose of 25 mg of VIAGRA in a 48-hour period. <a href=http://discountsrxpills.com>Viagra Online</a>
<a href=http://hqrxmed.com>Buying Viagra Online</a>
<a href=http://toprxed.wetpaint.com/page/Top+Online+Pharmacy>Online Pharmacy Viagra</a>
<a href=http://hqrxmed.com/propecia.htm>Buy Propecia Online</a>
<a href=http://hqrxmed.com/cialis.htm>Buying Cialis Online</a>
<a href=http://buyviagrarx.mediaplace.biz>Buy Viagra</a>
<a href=http://viagrarxpills.mediaplace.biz>Buy Generic Viagra</a>
VIAGRA is not indicated for use in newborns, children, or women. <a href=http://viagraacheter.mediaplace.biz>Acheter Viagra</a>
<a href=http://buyviagraline.mediaplace.biz>Viagra Online</a>
<a href=http://discountsrxpills.com>buy Viagra</a>
<a href=http://popularpills.mediaplace.biz>Buy Viagra Online</a>
<a href=http://buy-cialis-rx.com>Buying Cialis Online</a>
<a href=http://buy-propecia-rx.com>Buy Propecia On-Line</a>
<a href=http://buy-levitra-rx.net>Buy Levitra On-Line</a>
<a href=http://buy-viagra-rx.net>sildenafil</a>
<a href=http://buy-acomplia-rx.com>Acomplia</a>
<a href=http://buy-cialis-rx.com>Online Lasix</a>
Twenty-five subjects were screened. Two were discontinued after study period 1: one failed to meet pre-dose screening qualifications and the other experienced symptomatic hypotension as a moderately severe adverse event 30 minutes after dosing with open-label VIAGRA 50 mg. Of the twenty subjects who were ultimately assigned to treatment, a total of 13 subjects successfully completed dose period 1, and seven had successfully completed the previous doxazosin study (using VIAGRA 50 mg).

Post Feedback

Title:
Name:
Url:
Comments: 
Protected by Clearscreen.SharpHIPEnter the code you see: