Skip to content

Add example that parses valid email addressed. #8

Answered by renggli
Luckey-Elijah asked this question in Q&A
Discussion options

You must be logged in to vote

There is a basic example here in the benchmarks (with regex comparison):

seq5(
letter().plus(),
char('@'),
letter().plus(),
char('.'),
letter().repeat(2, 3),
),

The URL parser is probably a more complete example to extract e-mail addresses, but it requires the scheme: mailto://[email protected]. Maybe you can start there?

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by renggli
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #3 on November 11, 2023 13:35.