Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Regular Expression
r"
^----\n(Airport\s+TNCB.*(?:\n.*)*?)\n----
"
gm
Input 1
New
---- Airport SPQU :S16:20:25.6431 W071:34:22.3800 8338ft Country Name="Peru" State Name="" City Name="Arequipa" Airport Name="Rodriguez Ballon" in file: ORBX\FTX_VECTOR\FTX_VECTOR_AEC\scenery\AEC_SPQU.bgl ---- Airport SPRF :S14:15:59.9484 W070:27:59.9997 14419ft Country Name="Peru" State Name="" City Name="San Rafael" Airport Name="San Rafael" in file: Scenery\0304\scenery\APX29370.bgl Start 12 : S14:15:40.9653 W070:28:38.3900 14419ft Hdg: 117.0T, Length 8760ft Start 30 : S14:16:18.9314 W070:27:21.6092 14419ft Hdg: 297.0T, Length 8760ft 0120 Lat -14.261198 Long -70.477715 Alt 14419 Hdg 120 Len 8760 Wid 98 0300 Lat -14.272106 Long -70.455620 Alt 14419 Hdg 300 Len 8760 Wid 98 ---- Airport TNCB :N12:08:25.5567 W068:16:34.3503 20ft Country Name="Netherlands Antilles" State Name="" City Name="Bonaire I" Airport Name="Flamingo" in file: Scenery\0303\scenery\APX29270.bgl Start 10 : N12:08:23.2891 W068:17:16.0525 20ft Hdg: 92.0T, Length 9448ft Start 28 : N12:08:20.1144 W068:15:
Substitution
---- Airport SPQU :S16:20:25.6431 W071:34:22.3800 8338ft Country Name="Peru" State Name="" City Name="Arequipa" Airport Name="Rodriguez Ballon" in file: ORBX\FTX_VECTOR\FTX_VECTOR_AEC\scenery\AEC_SPQU.bgl ---- Airport SPRF :S14:15:59.9484 W070:27:59.9997 14419ft Country Name="Peru" State Name="" City Name="San Rafael" Airport Name="San Rafael" in file: Scenery\0304\scenery\APX29370.bgl Start 12 : S14:15:40.9653 W070:28:38.3900 14419ft Hdg: 117.0T, Length 8760ft Start 30 : S14:16:18.9314 W070:27:21.6092 14419ft Hdg: 297.0T, Length 8760ft 0120 Lat -14.261198 Long -70.477715 Alt 14419 Hdg 120 Len 8760 Wid 98 0300 Lat -14.272106 Long -70.455620 Alt 14419 Hdg 300 Len 8760 Wid 98 ---- Airport TNCB :N12:08:25.5567 W068:16:34.3503 20ft Country Name="Netherlands Antilles" State Name="" City Name="Bonaire I" Airport Name="Flamingo" in file: Scenery\0303\scenery\APX29270.bgl Start 10 : N12:08:23.2891 W068:17:16.0525 20ft Hdg: 92.0T, Length 9448ft Start 28 : N12:08:20.1144 W068:15: