Spaces:
Sleeping
Sleeping
Delete test_parse.py
Browse files- test_parse.py +0 -4
test_parse.py
DELETED
|
@@ -1,4 +0,0 @@
|
|
| 1 |
-
import re
|
| 2 |
-
text = '{"action_type": "delegate", "target_agent": "netops", "instruction_payload": {"action_type": "throttle_bandwidth", "target_id": "dc2_router--dc3_router", "parameters": {"limit_pct": 10}}}'
|
| 3 |
-
match = re.search(r'\{.*\}', text, re.DOTALL)
|
| 4 |
-
print(match.group(0))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|