Skip to content

Tool for testing regular expressions and creating mini tools for modifying text with regular expressions

License

Notifications You must be signed in to change notification settings

evanwills/regex-multi-tool

Repository files navigation

Regex Multi Tool

Getting started

Download from Github https://github.com/evanwills/regex-multi-tool

$ npm install
$ npm run dev

About

This is a tool for testing regular expressions and creating mini tools for repeatedly, programtically modifying text with the help of regular expressions.

Regex multi tool aims to merge two seperate but related tools I've been working on for years.

  • Regex Tester which allows you to test regular expressions, see what a regular expression captures from a given string and sequentially apply multiple find/replace patterns on a string
  • Do regex stuff which allows you to perform complex, repeatable, text transformations using regexes and programming logic. This is achieved by creating custom actions (an action is a function that allows you do do whatever you want to a string)

Both parts can run in directly in the browser using Javascript or utilise a server-side API.
(Currently, only the PHP implementation is in progress. However, I hope to create one in DotNet and maybe in Python since I've just started learning that.)

The user interface is written in pure Javascript using the lit-html

This is an experement to see if I can build a sophisiticated Javascript based tool without any build step.

TODO

  • Dark mode theme [done]
  • Light mode theme [done]
  • User managed custom theme [done]
  • browser history updating [done]
  • Remove dependence on Sass [done]
  • Local "Repeatable" implementation [done]
  • Export Regex API (TypeScript) to ES Modules [in progress]
  • Implement Local storage [mostly done]
  • Implement Service worker
  • Make all actions that modify text asynchronous
  • Remote Regex test (oneOff)
  • Remote Do Regex stuff (repeatable)
  • Move local actions that modify text into a web worker (if that's even possible)
  • Move state management to web worker

About

Tool for testing regular expressions and creating mini tools for modifying text with regular expressions

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published