From: angico Date: 2009-10-05T21:47:06+09:00 Subject: Re: regex simplifier? ------ On Monday 05 October 2009 09:28:55 Roger Pack wrote: > Question. > Currently I am somewhat of a novice to regex's. > For example, I can't remember what \d means versus \D -- which one is a > digit, and which one isn't? > > I'm wondering if there's any tool out there anyone knows about that > simplifier this, like > DIGIT* (in the regex) or something so that it's easier to understand > what you're doing. > > Thanks. > -r From man perlre \d Match a digit character \D Match a non-digit character RE typically uses lowercase characters to mean direct sense, and uppercase characters to mean the contrary, for example, \s matches whitespace, \S matches non-whitespace, \w word, \W non-word, etc. -- angico ------ Site: angico.org Blog: angico.org/blog Gnu/Linux, FLOSS, Espiritismo, e eu por mim mesmo 8^I == Cooperação é _muito_ melhor que competição == ------ contatos: email: angico@angico.org skype: angico00