Skip to content

Releases: mcustiel/php-simple-regex

Added method to get submatch or default value in Match

18 May 14:11

Choose a tag to compare

  • Added getSubMatchOrDefaultAt in Match.
  • Removed version field from composer.
  • Changed the way php-simple-regex is checking for external regex generators.
  • Improved exception message for No submatch found.

Fixed wrong value in composer.json

19 Jul 10:23

Choose a tag to compare

v1.0.2

Fix in version

Fixed missing value in composer.json

19 Jul 10:21

Choose a tag to compare

  • BugFix: Version missing in composer.json.

First functional version

19 Jul 10:13

Choose a tag to compare

  • Added Executor class with methods:
  • MatchResult getAllMatches(string $pattern, string $subject, integer $offset = 0)
  • Match getOneMatch(string $pattern, string $subject, integer $offset = 0)
  • boolean match(string $pattern, string $subject, integer $offset = 0)
  • ReplaceResult replaceAndCount(string $pattern, string $replacement, mixed $subject, integer $limit = -1)
  • mixed replace(string $pattern, string $replacement, mixed $subject, integer $limit = -1)
  • mixed replaceCallback(string $pattern, callable $callback, mixed $subject, integer $limit = -1)
  • ReplaceResult replaceCallbackAndCount(string $pattern, callable $callback, mixed $subject, integer $limit = -1)
  • Added Match, MatchResult and ReplaceResult objects.
  • Support for Flux and VerbalExpressions
  • Errors are thrown as exceptions and not displayed.
  • Unit tests added.