loshadki
RegExp icon

RegExp

Test regular expressions with the engines your code uses, on Mac, iPhone and iPad

About

RegExp is a regular expression tester for developers. Write a pattern, paste your text, and see every match and capture group as you type. Every flavor runs on its own engine, so a pattern behaves in RegExp the way it will behave in your code.

  • Swift Regex
  • NSRegularExpression (Objective-C and Swift)
  • JavaScript (ECMAScript)
  • PCRE2, the engine of PHP
  • Go and Go (POSIX)

All six run on Mac, iPhone and iPad, and your sessions sync between them with iCloud.

RegExp on the Mac: a pattern with named groups, the test string and the matches

Features

  • Matches and capture groups highlighted in the test string, with their names
  • Errors marked right in the pattern, unbalanced brackets too
  • Substitution with each engine’s replacement syntax, and a list mode that extracts one line per match
  • A quick reference of each flavor’s syntax: select an item to insert it
  • Copy the pattern as ready-to-use Swift, Objective-C, JavaScript, Go or PHP code
  • Jump between matches; slow patterns time out instead of freezing the app
  • Sessions and folders, your own regex notebook, synced with iCloud
  • Search, duplicate, export and import sessions, or open one in its own window
  • Shortcuts actions, Spotlight search, and a Services menu item on the Mac for selected text
  • In English, German, French, Spanish, Italian, Portuguese, Ukrainian, Russian, Japanese and Chinese

RegExp Pro

Most of RegExp is free. RegExp Pro is a one-time purchase that works with Family Sharing, and adds:

  • Explain: what every part of a pattern does, in plain language, and what the selected flavor doesn’t support
  • Test cases: strings a pattern must or must not match, checked on every run
  • Apple Intelligence: write a pattern from a description, or get a summary of one (on supported devices)
  • The advanced options of every flavor

Screenshots

Explain describes every part of a pattern
Test cases a pattern must or must not match
Substitution in list mode, one line per match

RegExp on iPhone: the pattern and the test string RegExp on iPhone: matches and capture groups RegExp on iPhone: sessions in folders
RegExp on iPhone

FAQ

How is RegExp different from other regular expression testers?

The idea behind RegExp was to write regular expressions in a specific flavor and test them with the native implementation of that flavor: Apple’s own Swift Regex and NSRegularExpression, JavaScriptCore, PCRE2 and Go’s regexp package. When a pattern works in RegExp, it works the same way in your app.

How is it different from web services?

A lot of times we need to test regular expressions with data that can include sensitive information. RegExp runs your patterns on your device, so this information stays in your working environment. The Apple Intelligence features use the on-device model too.

What does RegExp Pro include?

Explain, test cases, Apple Intelligence and the advanced options of every flavor. Everything else is free. Pro is a one-time in-app purchase, and your family can use it through Family Sharing.

The translation has a mistake

RegExp was translated into nine languages with AI, and the app says so in About. If something reads wrong in your language, please use Report a problem… there, or write to support@loshadki.app.

Privacy Policy

RegExp has no analytics and no tracking. Your sessions are stored on your devices and synced through your own iCloud account.

We believe very strongly in our customers’ right to privacy. Our customer records are not for sale or trade, and we will not disclose our customer data to any third party except as may be required by law.

Any information that you provide to us in the course of interacting with our sales or technical support departments is held in strict confidence. This includes your contact information (including, but not limited to your email address and phone number), as well as any data that you supply to us in the course of a technical support interaction.

Support

Please email us any suggestions, ideas, questions or discovered bugs to support@loshadki.app