-
I am trying to detect changes that occur in a text file posted by the US National Weather Service. The change would always occur between two strings. A sample of the relevant portion of the file follows. There is no CSS/JSONPath/JQ/XPath to use: it is just all text. I want to consider the entire block. I don't know how to select it by lines. What I want to monitor is everything between and not including .SYNOPSIS.. and && The same follows. This feels more like a feature request? Thanks! FXUS61 KBOX 302335 Area Forecast Discussion .SYNOPSIS... && .NEAR TERM /UNTIL 6 AM THURSDAY MORNING/... |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
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 Precise anchors: starts with .SYNOPSIS... |
Beta Was this translation helpful? Give feedback.
-
Thank you so much! I'll try it tomorrow. I still get confused about
whether or not CD.io's regex can span lines.
…---
Tom Foth
***@***.***
***@***.***
On Thu, May 1, 2025 at 12:10 PM dgtlmoon ***@***.***> wrote:
Bonus idea - would be cool to have some drag/select so you could
automatically select it in the UI
—
Reply to this email directly, view it on GitHub
<#3164 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACOIIO6ECTU6FHUIKNLMTBD24JBQVAVCNFSM6AAAAAB4HCC5TGVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTGMBQGU2TIMI>
.
You are receiving this because you authored the thread.Message ID:
<dgtlmoon/changedetection.io/repo-discussions/3164/comments/13005541@
github.com>
|
Beta Was this translation helpful? Give feedback.
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