Please help me with the full-length ceremony

Asked 2 weeks ago, Updated 2 weeks ago, 1 views

04 2200-2330, 05-07 0730-0900 2200-2330, 08 0745-0915 2200-2330, 09 0730-0900, 04 JUL 22:00 2021 UNTIL 09 JUL 09:00 2021. CREATED: 30 JUN 07:01 2021

06-08 1300-2200, 10 11 0000-1400, 06 JUL 13:00 2021 UNTIL 11 JUL 14:00 2021. CREATED: 30 JUN 07:00 2021

0100-0400, 07 JUL 01:00 2021 UNTIL 09 JUL 04:00 2021. CREATED: 29 JUN 11:12 2021

1400-2100, 28 JUN 14:00 2021 UNTIL 24 SEP 21:00 2021. CREATED: 24 JUN 09:32 2021

02 AUG 14:00 2021 UNTIL 16 AUG 14:00 2021. CREATED: 03 JUN 04:08 2021

Hello, everyone I want to bring a period in front of CREATED as a regular expression, but there are various types, so if I do one, the other is not included I'd appreciate your help.

# The desired result
04 2200-2330, 05-07 0730-0900 2200-2330, 08 0745-0915 2200-2330, 09 0730-0900, 04 JUL 22:00 2021 UNTIL 09 JUL 09:00 2021.

06-08 1300-2200, 10 11 0000-1400, 06 JUL 13:00 2021 UNTIL 11 JUL 14:00 2021.

1400-2100, 28 JUN 14:00 2021 UNTIL 24 SEP 21:00 2021.

02 AUG 14:00 2021 UNTIL 16 AUG 14:00 2021.

Add Content

# DROPPING OF GOODS FROM THE AREA FOR WEATHER OBSERVATION. SFC - FL230, 01 03 05 07 0500-0800, 01 JUL 05:00 2021 UNTIL 07 JUL 08:00 2021. CREATED: 30 JUN 09:19 2021

# # INCLUDING ALL ATS RTE IN THIS AREA. FL210 - FL230, 01-05 1400-2200, 06-09 0530-1130, 01 JUL 14:00 2021 UNTIL 09 JUL 11:30 2021. CREATED: 29 JUN 01:20 2021

# # RESTRICTED AREA RK R156 ACT. SFC - 3500FT AMSL, 2300-0900, 04 JUL 23:00 2021 UNTIL 09 JUL 09:00 2021. CREATED: 25 JUN 11:27 2021

# # MILITARY OPERATION FLIGHT AND FIRE FIGHTING ACFT. SFC - FL180, 01 JUN 00:31 2021 UNTIL 01 AUG 15:00 2021 ESTIMATED. CREATED: 01 JUN 00:42 2021

regex python

2022-09-20 15:42

1 Answers

I think we can do it like this.

string.split('CREATED')[0]


2022-09-20 15:42

If you have any answers or tips


© 2022 pinfo. All rights reserved.