Anchor

2 snippets across 2 stacks — HTML & CSS, Regular Expressions

Also written as \A anchor

HCHTML & CSS

Basic Links

HC · Links & Navigation
syntax
<a href="url">link text</a>
example
<a href="/pricing">View Pricing</a>
<a href="https://example.com">Visit Example</a>

Note Always use descriptive link text. Avoid generic phrases like 'click here' as they are unhelpful for screen readers and SEO.

RXRegular Expressions

\A Absolute Start of String (Python)

RX · Anchors & Boundaries
syntax
\A  matches the very start of the string (ignores multiline)
example
Py:  re.search(r'\AFirst', 'First line\nSecond line', re.MULTILINE)
     # Matches 'First'
Py:  re.search(r'^Second', 'First line\nSecond line', re.MULTILINE)
     # Also matches (^ respects multiline)
output
\A always means absolute start, even with re.MULTILINE

Note \A is not available in JavaScript. It is equivalent to ^ when multiline mode is off, but unlike ^, it never changes behavior with the m flag. Use \A in Python when you always mean the beginning of the entire string.