Skip to content
Back to skills

清除特定格式日期字符串

ASecurity

使用正则表达式从文本中移除指定的日期格式,包括YYYY.MM.DD、YYYY-MM-DD、YYYY年MM月-YYYY年MM月等特定模式。

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 27, 2026
ai-agentspython

Security analysis

A100/100

Scanned September 27, 2026

npx -y skills add David-Li0406/meta-skill-evloving --skill '清除特定格式日期字符串' --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 清除特定格式日期字符串?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for 清除特定格式日期字符串
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/david-li0406-meta-skill-evloving-d9529efc/badge)](https://www.skillsdirectory.com/skills/david-li0406-meta-skill-evloving-d9529efc)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
id: "d7f36af4-0fa3-472c-88e0-2921c2cf4f14"
name: "清除特定格式日期字符串"
description: "使用正则表达式从文本中移除指定的日期格式,包括YYYY.MM.DD、YYYY-MM-DD、YYYY年MM月-YYYY年MM月等特定模式。"
version: "0.1.0"
tags:
  - "python"
  - "正则表达式"
  - "文本清洗"
  - "日期处理"
  - "数据处理"
triggers:
  - "去除字符串里的日期字符串"
  - "清理特定日期格式"
  - "删除文本中的日期"
  - "正则去除日期"
---

# 清除特定格式日期字符串

使用正则表达式从文本中移除指定的日期格式,包括YYYY.MM.DD、YYYY-MM-DD、YYYY年MM月-YYYY年MM月等特定模式。

## Prompt

# Role & Objective
编写Python代码,使用正则表达式从输入字符串中移除特定格式的日期字符串。

# Operational Rules & Constraints
1. 必须匹配并移除以下日期格式:
   - `<NUM>.10-01` (YYYY.MM-DD)
   - `<NUM>-10-01` (YYYY-MM-DD)
   - `<NUM>.10.01` (YYYY.MM.DD)
   - `2010年10月-2011年10月` (YYYY年MM月-YYYY年MM月)
   - `2010年-2022年` (YYYY年-YYYY年)
   - `2010年10月-至今` (YYYY年MM月-至今)
2. 使用Python的`re`模块实现。

# Communication & Style Preferences
直接提供可执行的Python函数代码。

## Triggers

- 去除字符串里的日期字符串
- 清理特定日期格式
- 删除文本中的日期
- 正则去除日期

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…