![]() ![]() NET framework.Īs you'll see in the first example, Regex modifiers are usually specified as the second parameter when creating the Regex instance. Several of them are common among all programming languages supporting the Regular Expression standard, while others are specific to the. You'll find all the available modifiers in the RegexOptions enumeration. Simply supply the RegexOptions.IgnoreCase option when creating the Regex instance and your match will be case-insensitive. However, in a lot of situations, you want your match to be case-insensitive so that the character "a" is just a letter, no matter if its in lowercase or UPPERCASE. For instance, a Regex matching process is usually case-sensitive, meaning that "a" is not the same as "A". When working with Regular Expressions, you can use one or several modifiers to control the behavior of the matching engine. At this point, you should already have realized how powerful Regular Expressions are and how they can help you in a lot of situations, but they get even more powerful when you know about the possible modifiers. In previous articles, we talked about what Regular Expressions are and how to use them in C# for matching, replacing and so on. Expressões Regulares (Regex): Regex Modifiers
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |