Re: regexp in .net

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



adrianca@xxxxxxxxx wrote:

Thank that was exactly what i need.
Could you recommend any good sites / tutorials for regexp as its an
area im poor at and would like to improve on?

Sorry, I can't recommend anything specific. I learnt it all a long time ago from documentation and examples of Unix sed and Perl, which I think are quite good - but many of their samples are for sed and Perl, obviously, which doesn't make them a very good resource for somebody wanting to use regular expressions in .NET. Two nice (and short) primers are here: http://www.developer.com/lang/article.php/3330231 and here: http://www.futureone.com/~sponge/tutorial/perl/RegexOverview.html , but this is really basic stuff. This is a good book, but it also uses Perl as the programming language around the regular expressions: http://www.oreilly.com/catalog/regex/


When you are becoming a little better with regexes, it's probably best if you set yourself some tasks and try to ask about the details - or compare your results to published resources like http://www.regexlib.com/

Finally, of course, for the exact detailed definition of regular expressions in .NET, you should use the MSDN pages: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconcomregularexpressions.asp


Oliver Sturm -- omnibus ex nihilo ducendis sufficit unum Spaces inserted to prevent google email destruction: MSN oliver @ sturmnet.org Jabber sturm @ amessage.de ICQ 27142619 http://www.sturmnet.org/blog .



Relevant Pages

  • Re: another frustrating learner question, CLOS
    ... FIRST, regular expressions is a small, separate language. ... it literally character by character, and one character in a RE can be ... Besides, if you want white space, in Perl you can use the x modifier ...
    (comp.lang.lisp)
  • Serious Perl Regular Expression deficiency?
    ... After extensive read on the Perl docs on re's ... conclusion that regular expressions have a serious ... This is serious because the not string ... howdy folks --> ...
    (comp.lang.perl.misc)
  • Re: Serious Perl Regular Expression deficiency?
    ... I started doing Perl 2 years ago and have ... > conclusion that regular expressions have a serious ... This is serious because the not string ... If you want to pull out the contents of XML comments you could do this. ...
    (comp.lang.perl.misc)
  • Re: Regexp slowdown
    ... this only applies when addressing parts of someone's ... The word 'backtracking' has a specific meaning in the context of Perl ... decidedly do not know enough) about Perl regular expressions, ... If you had read the posting guidelines, you would have known about the ...
    (comp.lang.perl.misc)
  • Re: RegEx Help Needed
    ... I'm not programming in Perl. ... Regular expressions differ subtly but significantly between the languages ... would have a good chance of not working in your language. ... Regular expressions are a very poor tool for parsing HTML. ...
    (comp.lang.perl.misc)