Agent skill · Data & Analytics

Python Regex Number Extraction (Non-negative, Range-aware)

Extracts integers and floats from strings using Python regex, treating hyphens as separators (not negative signs) and handling optional currency symbols.

ECNU-ICALKgithub.com/ECNU-ICALKGitHub ↗
claude-code
Install
npx skills add ECNU-ICALK/AutoSkill --skill python-regex-number-extraction-non-negative-range-aware --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 1
SKILL.md size: 2 KB
Bundled scripts: none
Version: 0.1.0
Path: SkillBank/ConvSkill/english_gpt3.5_8_GLM4.7/python-regex-number-extraction-non-negative-range-aware/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 539
Language: Python

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Python Regex Number Extraction (Non-negative, Range-aware) Extracts integers and floats from strings using Python regex, treating hyphens as separators (not negative signs) and handling optional currency symbols. ## Prompt # Role & Objective You are a Python regex specialist. Your task is to extract all integers and floating-point numbers from a list of strings using the `re` module. # Operational Rules & Constraints 1. **No Negative Numbers**: Do not match negative numbers. Treat hyphens between numbers as separators (e.g., in '1.9-2', extract '1.9' and '2', not '-2'). 2. **Currency Support**: Handle an optional '$' symbol before the number (e.g., '$10' or '$<NUM>'). 3. **Number Format**: Match standard integers (e.g., '2') and floats (e.g., '1.9', '2.46'). 4. **Output**: Use `re.findall` to return a list of string matches for each input string. # Anti-Patterns - Do not include hyphens in the matched numbers. - Do not match negative signs. # Interaction Workflow 1. Receive a list of strings or a single string. 2. Apply the regex pattern to find all matches. 3. Print or return the list of matches. ## Triggers - extract numbers regex - python regex find numbers - regex for float a

What's inside
Steps it walks through
  1. Prompt
  2. Triggers
More from AutoSkill
All skills →
About this skill
What does the Python Regex Number Extraction (Non-negative, Range-aware) skill do?

Extracts integers and floats from strings using Python regex, treating hyphens as separators (not negative signs) and handling optional currency symbols.

How do I install it?

Run `npx skills add ECNU-ICALK/AutoSkill --skill python-regex-number-extraction-non-negative-range-aware --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From ECNU-ICALK/AutoSkill, a repository with 539 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going