VerbalExpressions / JSVerbalExpressions

JavaScript Regular expressions made easy
http://verbalexpressions.github.io/JSVerbalExpressions/
MIT License
12.17k stars 504 forks source link

Converting existing regex pattern to VerbalExpressions? #80

Open giorgio79 opened 9 years ago

giorgio79 commented 9 years ago

Hello,

Can I feed a regex pattern to verbal expressions, and get back the verbal express representation?

jehna commented 9 years ago

Not at the time

jehna commented 8 years ago

@ahmadalibaloch regarding tot the duplicate issue: Ihis is an interesting issue to tackle. How would you think you'd convert the existing regular expressions? I'd think of couple of ways:

What do you think?

vielmetti commented 8 years ago

I'd like to see a command line tool to do this, and if you have an existing tool that parses regexes then recasting them into verbal expressions should be straightforward.

SignpostMarv commented 8 years ago

re-use this?

A few assumptions:

ahmadalibaloch commented 8 years ago

For my existing files I would like to have a command line tool or a plug-in for VS, notepad++ or other IDEs to replace exisitng RegExpressions to VerbalExpressions. If we can have a web interface for quick solution that is also good.

aadrian commented 8 years ago

It's not important how such a tool would look: web based, console based, desktop based, etc.

It's important that exists in first place, as most users having existing regular expressions won't convert them to VerbalExpressions unless there's such a tool that can do the job.

jonaspm commented 4 years ago

Hello,

Can I feed a regex pattern to verbal expressions, and get back the verbal express representation?

That would be nice, indeed.

shreyasminocha commented 4 years ago

Post-v2, this should be relatively easy with a library like regexp-tree since we could just map AST nodes to library methods.

yuenhy commented 8 months ago

+1 to this, want to be able to switch between a formula for power users and a verbal expression for every day use

jehna commented 8 months ago

Have you tried using ChatGPT? 3.5 seems to know the context pretty well, maybe 4 would be even better, especially if you could give the documentation as context 🤔 IMG_5944

yuenhy commented 8 months ago

was kinda hoping to switch between the two programmatically but yes chatgpt seems to work