agentsclimarketplace

清除特定格式日期字符串

Skill ECNU-ICALK/AutoSkill/SkillBank/ConvSkill/chinese_gpt4_8/清除特定格式日期字符串

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

Install
npx -y skills add ECNU-ICALK/AutoSkill --skill 清除特定格式日期字符串

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.

SKILL.md

1.4 KB, 289 tokens by cl100k_base, as published. Nobody here has run it

清除特定格式日期字符串

使用正则表达式从文本中移除指定的日期格式,包括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

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

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.