^
|
Match must occur at the beginning of the current line
|
$
|
Match must occur at the end of the current line
|
\A
|
Match must occur at the beginning of the matching text
|
\Z
|
Match must occur at the end of the matching text or before a newline at the end of the matching text
|
\z
|
Match must occur at the end of the matching text
|
\b
|
Match must occur on a word boundary between \w (word) and \W (non-word) characters
|
\B
|
Match must not occur on a word (\b) boundary
|
(?= exp)
|
Creates a positive lookahead assertion. In order for the entire input string to be considered a match, the subexpression must match at the current position in the input string
|
(?! exp)
|
Creates a negative lookahead assertion. In order for the entire input string to be considered a match, the subexpression must not match at the current position in the input string
|
(?<= exp)
|
Creates a positive lookbehind assertion. In order for the input string to be considered a match, the subexpression must match the text immediately preceding the current position in the input string
|
(?<! exp)
|
Creates a negative lookbehind assertion. In order for the input string to be considered a match, the subexpression must not match the text immediately preceding the current position in the input string
|