ToString() public method

public ToString ( ) : string
return string
Ejemplo n.º 1
0
 /// <summary>
 /// A non-capturing group
 /// </summary>
 /// <param name="innerExpression"></param>
 /// <returns></returns>
 public Pattern Phrase(Pattern innerExpression)
 {
     _content.AppendFormat("(?:{0})", innerExpression.ToString());
     return this;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Matches any single character contained within
 /// </summary>
 /// <param name="innerExpression"></param>
 /// <returns></returns>
 public Pattern Set(Pattern innerExpression)
 {
     _content.AppendFormat("[{0}]", innerExpression.ToString());
     return this;
 }
Ejemplo n.º 3
0
 /// <summary>
 /// A subset of the pattern that can be referenced as a named capture
 /// </summary>
 /// <param name="groupName"></param>
 /// <param name="innerExpression"></param>
 /// <returns></returns>
 public Pattern NamedGroup(string groupName, Pattern innerExpression)
 {
     _content.AppendFormat("(?<{1}>{0})", innerExpression.ToString(), groupName);
     return this;
 }