DanielBerger
Mission Specialist
Mission Specialist
  • 877 Views

Regex backtracking tool?

Jump to solution

I've used sites like rubular.com to validate regular expressions. However, I'm wondering if there's anything out there that can evaluate the efficiency of a regular expression, i.e. show me how much (possibly unnecessary) backtracking is happening.

Does such a tool exist? I'm looking for one for Ruby in particular, but a "generic" might work, too.

Labels (1)
0 Kudos
1 Solution

Accepted Solutions
Razique
Flight Engineer Flight Engineer
Flight Engineer
  • 867 Views

Hey @DanielBerger yes, there is such a tool, I recently discovered it, and it's great:

https://regex101.com/

I supports four flavors as well :)

View solution in original post

0 Kudos
2 Replies
DanielBerger
Mission Specialist
Mission Specialist
  • 871 Views

To followup to my own question, I did find regex101.com, which has a debugger, and shows the number of steps involved.

0 Kudos
Razique
Flight Engineer Flight Engineer
Flight Engineer
  • 868 Views

Hey @DanielBerger yes, there is such a tool, I recently discovered it, and it's great:

https://regex101.com/

I supports four flavors as well :)

0 Kudos
Join the discussion
You must log in to join this conversation.