[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.sdk

Regex (?(expression) yes|no) How to use this?

Edu

7/31/2003 6:41:00 AM

Hi ,
I need an exemple of how to use these following 2 Alternation Construncs:

(?(expression)yes|no)
(?(name)yes|no)

Source:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/html/cpconalternationcons...

I'm trying to understand how to use them but no luck so far. An exemple may
help me out.

Thanks,
Edu


1 Answer

Dino Chiesa [MSFT]

8/1/2003 2:13:00 AM

0

Regular Expressions are a language in themselves, and the syntax can be
daunting, at first. For anyone who is using Regex in the .NET Framework, I
always recommend getting one of the visual Regex tester tools.

- Regex Designer - by Chris Sells
http://www.gotdotnet.com/Community/Workspaces/Workspace.aspx?id=01e0dfb7-0182-45cd-94f7-2e...
check out this picture of the UI:
http://www.sellsbrothers.com/tools/i...

- RegEx, by Gerry Shaw
http://www.organicbit.com/regex/fog00000...

Both of the above include source code, for those who are interested. They
are
primarily useful as tools to build and test regex''s that you can then
include into
apps.


-Dino

"Edu" <xptotmp@comcast.net> wrote in message
news:kdicndM2IY-OJ7WiXTWJhQ@comcast.com...
> Hi ,
> I need an exemple of how to use these following 2 Alternation Construncs:
>
> (?(expression)yes|no)
> (?(name)yes|no)
>
> Source:
>
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/html/cpconalternationcons...
>
> I''m trying to understand how to use them but no luck so far. An exemple
may
> help me out.
>
> Thanks,
> Edu
>
>