Cannot find an example that looks like what I am looking for.
I am trying to capture ASN numbers in an FAA Aeronautical NOTAM. Example Below:
Example Text:
2019-AWP-7268-OE
Regex Match (findall):
\d{4}-(?:AAL|ACE|AEA|AGL|ANE|ANM|ASO|ASW|AWP|WTE|WTW)-(?:\d{3,6})-(?:OE|NRA)
However, I also want to capture it when multiple are issued:
- 2019-AWP-659 THRU 662-NRA
- 2019-AWP-3823/3825-NRA
- 2019-AWP-4593/4594/4595/4596-NRA
- 2019-ASW-4791, 4794 THRU 4796, 4798 THRU 4800-NRA
I get caught up trying to make an expression where any amount of characters but the expression ends in OE/NRA. Is there any way to match the Year (2019), Region (ASW|AWP), Any Text (3823/3825), then Type (OE|NRA)?