swift-regex-builder

Community

Type-safe Swift regex: build and extract reliably

AuthorAutisticAF
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This skill helps developers replace fragile, string-based regular expressions with Swift's type-safe Regex and RegexBuilder APIs to reliably match, extract, replace, and parse structured data from strings.

Core Features & Use Cases

  • Readable, composable patterns for building multi-line and complex regex with RegexBuilder instead of concatenating strings.
  • Captures and transforms to extract typed values including integers, doubles, and dates using Foundation parsers.
  • Migration guidance for moving from NSRegularExpression to modern Swift regex in projects targeting iOS 16 / macOS 13 and newer.

Quick Start

Use the swift-regex-builder skill to generate a RegexBuilder pattern that extracts a date and an integer amount from the string "Due: 2025-12-31 $1,234".

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: swift-regex-builder
Download link: https://github.com/AutisticAF/claude-code-apple-dev-plugin/archive/main.zip#swift-regex-builder

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.