Namespace: FluentRegex
Class AnchorBuilder
builds anchors for a regular expression pattern.
public class AnchorBuilder : IBuilder
Inheritance Object → AnchorBuilder
Implements IBuilder
Gets or sets the pattern.
public StringBuilder Pattern { get; set; }
Initializes a new instance of the AnchorBuilder class.
public AnchorBuilder(Builder patternBuilder)
patternBuilder
Builder
Builds the anchor.
public object Build()
Object
The PatternBuilder instance that the anchor was added to.
Sets the anchor to Anchors.StartOfLine.
public AnchorBuilder StartOfLine()
Sets the anchor to Anchors.EndOfLine.
public AnchorBuilder EndOfLine()
Sets the anchor to Anchors.StartOfWord.
public AnchorBuilder StartOfWord()
Sets the anchor to Anchors.EndOfWord.
public AnchorBuilder EndOfWord()
Sets the anchor to Anchors.WordBoundary.
public AnchorBuilder WordBoundary()
Sets the anchor to Anchors.NonWordBoundary.
public AnchorBuilder NonWordBoundary()
Sets the anchor to Anchors.EndOfString.
public AnchorBuilder EndOfString()
Sets the anchor to Anchors.EndOfStringNoLineBreak.
public AnchorBuilder EndOfStringNoLineBreak()
Appends a literal string to the pattern.
public AnchorBuilder AppendLiteral(string literal)
literal
String
AnchorBuilder
This AnchorBuilder instance.