• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

bassim / super-expressive-php / 20851091429

09 Jan 2026 11:54AM UTC coverage: 91.801% (-1.5%) from 93.29%
20851091429

push

github

bassim
Add RegexParser to convert regex strings to SuperExpressive code

New feature that allows users to convert existing regex patterns into
SuperExpressive PHP code snippets.

Usage:
  $code = RegexParser::parse('/^\d{3}-\d{4}$/');

Supported features (v1):
- Anchors: ^ $
- Character classes: \d \D \w \W \s \S .
- Quantifiers: + * ? {n} {n,} {n,m}
- Lazy quantifiers: +? *? {n,m}?
- Character sets: [abc] [^abc] [a-z]
- Groups: (?:...) (...)
- Flags: i m s

New files:
- src/RegexParser.php - Main parser class
- src/RegexParseException.php - Exception for parse errors
- tests/RegexParserTest.php - 52 tests

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

364 of 404 new or added lines in 2 files covered. (90.1%)

795 of 866 relevant lines covered (91.8%)

13.39 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

85.71
/src/RegexParseException.php


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc