apple-text-parsing

Community

Choose the best parsing path for Swift text.

Authorsitapix
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This skill helps developers decide when to use Swift Regex versus NSRegularExpression, and explains how to bridge regex results to NSRange for TextKit-based editing, improving accuracy and performance decisions.

Core Features & Use Cases

  • Clear guidance on choosing between Swift Regex, RegexBuilder, and NSRegularExpression for text parsing in iOS apps.
  • Practical bridging strategies to map Range<String.Index> to NSRange for TextKit / NSAttributedString workflows.
  • Best-practice considerations for performance, deployment targets (iOS 16+ for Swift Regex), and interoperability with Foundation parsers.

Quick Start

Compare a sample Swift Regex and NSRegularExpression pattern for a text snippet and show how to bridge the match ranges to NSRange in a TextKit context.

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: apple-text-parsing
Download link: https://github.com/sitapix/apple-text/archive/main.zip#apple-text-parsing

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.