(text)
| 423 | |
| 424 | |
| 425 | def extract_json_from_string(text): |
| 426 | # Extract content inside ```yaml\n...\n``` |
| 427 | match = re.search(r"```json\n(.*?)\n```", text, re.DOTALL) |
| 428 | |
| 429 | if match: |
| 430 | yaml_content = match.group(1) |
| 431 | return yaml_content |
| 432 | else: |
| 433 | print("No JSON content found.") |
| 434 | return "" |
| 435 | |
| 436 | |
| 437 | def get_now_str(): |