Skip to content
Discussion options

You must be logged in to vote

Hey again!

I'm guessing you mean this document https://forecast.weather.gov/product.php?site=BOX&issuedby=BOX&product=AFD&format=CI&version=1&glossary=1

The answer is /\.SYNOPSIS\.\.\.(.*?)(?:&&|\Z)/is

Precise anchors: starts with .SYNOPSIS...
Handles newlines: /s flag + .*?
Doesn’t over-match: ? makes it non-greedy
Flexible end: matches either && or the end of the text

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@dgtlmoon
Comment options

Answer selected by dgtlmoon
Comment options

You must be logged in to vote
1 reply
@dgtlmoon
Comment options

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