What are the characters that match location in a string?
Are you preparing for IT certification? With practice questions, study notes, interactive quizzes, tips and technical articles, uCertify PrepKits ensure that you get a solid grasp of core technical concepts to ace your certification exam in first attempt.
What are the characters that match location in a string?
Rating:
The characters that match location in a string are as follows:
| ^ | It is used to specify that the match must begin at either the first character of a string or the last character of a line. If you are working on multiline input, the ^ will match the beginning of any line. |
| $ | It is used to specify that the match must end at either the last character of a string, the last character before at the end of a string, or the last character at the end of a line. If a user is working on multiline input, the $ will match the end of any line. |
| \A | It is used to specify that the match must begin at the first character of a string and it ignores multiple lines. |
| \Z | It is used to specify that the match must end at either the last character of a string or last character before at the end of a string and it ignores multiple lines. |
| \z | It is used to specify that the match must end at the last character of a string and it ignores multiple lines. |
| \G | It is used to specify that the match must occur at the point where the previous match ended. When it used with Match.NextMatch, it ensures that matches are adjacent. |
| \b | It is used to specify that the match must occur on a boundary between \w (alphanumeric) and \W (nonalphanumeric) characters. |
| \B | It is used to specify that the match must occur on a \b boundary. |
Rating:
Was this information helpful?
Other articles
- How to add a reference in the Integrated Development Environment?
- What is cryptography?
- Creating and Consuming .NET Remoting Objects in Microsoft .NET Framework
- What is enterprise policy?
- How to change settings for the Release or Debug configuration?
