Re: Regular expressions

Tech-Archive recommends: Speed Up your PC by fixing your registry



AHHHHHHHHHHHHHHHHH
Just learned something new today :)
Thank you Rick

Guy


"Rick Rothstein" <rickNOSPAMnews@xxxxxxxxxxxxxxxxx> wrote in message
news:O2FSbYiSFHA.1096@xxxxxxxxxxxxxxxxxxxxxxx
>> Can someone please show how to use Regular expressions to
>> validate that the input string is composed only from a-z and 0-9 ?
>
> Are you using VB6 or lower? If so, you don't need to use Regular
> Expressions... you can use the Like operator.
>
> If Not YourTextString Like "*[!a-z0-9]*" Then
> '
> ' Your text is composed only of
> ' lower case letters and digits.
> '
> End If
>
> If you want upper case letters too, then change the IF statement to this
>
> If Not YourTextString Like "*[!a-zA-Z0-9]*" Then
>
> On the other hand, if you are using a version of VB.NET, then consider
> this...
>
> Almost everybody in this newsgroup is using VB6 or lower. While you may
> get a stray answer to VB.NET (including VB2003 and VB2005 which has
> dropped .NET from its name) questions here, you should ask them in
> newsgroups devoted exclusively to .NET programming. Look for newsgroups
> with either the word "dotnet" or "vsnet" in their name.
>
> For the microsoft news server, try these newsgroups for Visual Basic
> .NET related questions...
>
> microsoft.public.dotnet.languages.vb
> microsoft.public.dotnet.languages.vb.upgrade
> microsoft.public.dotnet.languages.vb.controls
> microsoft.public.dotnet.languages.vb.data
>
> And these for more general .NET questions
>
> microsoft.public.dotnet.general
> microsoft.public.vsnet.general
>
> Note: There are many other .NET newgroups (use the first three "fields"
> from the last two as templates when searching for them), but the above
> ones should get you started.
>
> Rick - MVP
>


.



Relevant Pages

  • Re: OT - Cross-post filtering
    ... strings, unless I'm missing summat. ... You can use it in any news-reading software which allows the use of regular expressions. ... If you're looking to abandon OE, then Mozilla Thunderbird has a very good reputation, plus it quickly learns to identify e-mail spam as well. ... I use Thunderbird, and it's greta for email, but can't work out how to do filtering on newsgroups other than on the contents of From: and certainly haven't seen anywhere I could insert Molly's regular expression. ...
    (uk.music.folk)
  • Re: recognize lines
    ... Thanks Rick. ... Bob ... And, yes, it greatly exceeds ... > newsgroups at once, separated by either commas or semi-colons, in the ...
    (microsoft.public.vb.controls)
  • Re: reading and setting values in config file utilizing combo box in vb.net
    ... For the microsoft news server, try these newsgroups for Visual Basic ..NET related questions... ... Rick - MVP ...
    (comp.lang.basic.visual.misc)
  • Re: Controlling sounds while using the development Environment
    ... Rick -- ... > ask them in newsgroups devoted exclusively to .NET programming ... Microsoft Development Environment ... >> produces a loud sound along with this... ...
    (microsoft.public.vb.general.discussion)
  • Re: Any Rickenbacker owners?
    ... newsgroups around with fake names ripping on rick. ...
    (alt.guitar)