Tips n Tracks

  • Increase font size
  • Default font size
  • Decrease font size
  • default color
  • black color

Reference

Sample image

Microsoft .NET Framework Get Details.

Sample image

Microsoft .NET Framework Get Details.

Reference

Sample image Microsoft .NET Framework Get Details.
Sample image

Microsoft .NET Framework Get Details.


Using Regular Expressions Metacharacters – understand escaping


Using Regular Expressions Metacharacters – understand escaping

Regular Expressions Metacharacters are characters that have special meaning within regular expressions. The period (.) is a metacharacter; it is used to match any single character. The star (*) is a metacharacter; it is used to match repetition of a single character any number of times. Similarly, the left bracket ([) is a metacharacter; it is used to mark the beginning of a set and the right bracket (]) is a metacharacter; it is used to mark the ending of a set.

In regular expression metacharacter has special meaning, so these characters cannot be used to refer to themselves. For example, you cannot use a . (period) to match .(period) or * (star) to match * (star).

\(backslash) is a metacharacter which helps us to escape the meaning of the special characters and treat them as a normal character. Thus, "\$", "\^", "\.", and "\\", match the literal characters "$", "^", ".", and "\", respectively.

If you enjoyed this post, please consider to leave a comment or subscribe to the feed and get future articles delivered to your feed reader.

Comments

[...] Using Regular Expressions Metacharacters – understand escaping [...]

Pingback by Text and Data Manipulation with Regular Expressions in .NET Development | Tips n Tracks on May 29, 2009 @ 5:05 am

Leave a comment

(required)

(required)

*
To prove that you're not a bot, enter this code
Anti-Spam Image