|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
What is RegularExpression classes exactly ????Dear all,
Does any one have ever use this regular expression class, what are they used for exactly ? Event by reading msdn content, sounds totaly dark for me thnaks for your clarification in ASP.net to validate user checking, it's more convenient way then just
doint it with list of if's in other cases to find smth, to replace test by template (for exaple all numbers or smth) ant etc "serge calderara" wrote: > Dear all, > > Does any one have ever use this regular expression class, what are they used > for exactly ? > > Event by reading msdn content, sounds totaly dark for me > > thnaks for your clarification -- WBR, Michael Nemtsev :: blog: http://spaces.msn.com/laflour "At times one remains faithful to a cause only because its opponents do not cease to be insipid." (c) Friedrich Nietzsche Regular Expressions are used for finding character patterns in text. this is
entirely different from finding individual characters or substrings in text. For example, you might want to find all <img> tags in an HTML document. Now, each of these tags has some things in common. For example, they all begin with "<img". They all end with ">". But what's in-between the beginning and the end of the tag can be entirely different. Regular Expressions can match all substrings in a string that match a pattern, or a set of rules about the text in the substring. There is a whole language of symbols for looking for different types of patterns in text. The Regular Expressions classes are classes for working with the Regular Expressions language, and performing different types of operations with it. -- Show quoteHTH, Kevin Spencer Microsoft MVP ..Net Developer A brute awe as you, a Metallic hag entity, eat us. "serge calderara" <sergecalder***@discussions.microsoft.com> wrote in message news:051A3E77-156C-4136-BE3B-57D7A162E165@microsoft.com... > Dear all, > > Does any one have ever use this regular expression class, what are they > used > for exactly ? > > Event by reading msdn content, sounds totaly dark for me > > thnaks for your clarification This is a notation that allows to describe a "pattern" (such as "3 digits
followed by two optional digits then the "-" symbol and either the A or B letter"). You can then use this expression to see if a string match this pattern (you can also search and even search/replace those patterns). -- Show quotePatrice "serge calderara" <sergecalder***@discussions.microsoft.com> a écrit dans le message de news:051A3E77-156C-4136-BE3B-57D7A162E165@microsoft.com... > Dear all, > > Does any one have ever use this regular expression class, what are they used > for exactly ? > > Event by reading msdn content, sounds totaly dark for me > > thnaks for your clarification thanks to all of you sound more clear now.
In a similar wa you are validating custome expression on aserver control you need to be familar with this strange patter language thanks again Serge Show quote "Patrice" wrote: > This is a notation that allows to describe a "pattern" (such as "3 digits > followed by two optional digits then the "-" symbol and either the A or B > letter"). You can then use this expression to see if a string match this > pattern (you can also search and even search/replace those patterns). > > -- > Patrice > > "serge calderara" <sergecalder***@discussions.microsoft.com> a écrit dans le > message de news:051A3E77-156C-4136-BE3B-57D7A162E165@microsoft.com... > > Dear all, > > > > Does any one have ever use this regular expression class, what are they > used > > for exactly ? > > > > Event by reading msdn content, sounds totaly dark for me > > > > thnaks for your clarification > > > |
|||||||||||||||||||||||