firasdib / Regex101

This repository is currently only used for issue tracking for www.regex101.com
3.21k stars 198 forks source link

please add support for dart language regex #2125

Open insinfo opened 11 months ago

insinfo commented 11 months ago

please add support for dart language regex with code generator

working-name commented 11 months ago

@insinfo from https://dart.dev/guides/libraries/library-tour:

Regular expressions The RegExp class provides the same capabilities as JavaScript regular expressions. Use regular expressions for efficient searching and pattern matching of strings.

Did you find anything different about dart regex? Or did you mean you just wanted a code generator for it?

insinfo commented 11 months ago

image what it says is to have a tab/flavor on the site regex101 dedicated dart regex with code generator

working-name commented 11 months ago

@insinfo Understood.

Can you please provide a working dart code example on how to run a regex and focus a bit on whether or not regex needs to be escaped in dart?

As far as the flavor, since it is the same engine as Javscript you can click ECMAScript (JavaScript) flavor and you should be good to go. Then once we get a code generator going you can click Dart as the language there to have the regex ready/escaped for ya, if any escaping is needed at all.