firasdib / Regex101

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

[FR] Add a notes section to regular expression page #2136

Closed claudio-salvio closed 8 months ago

claudio-salvio commented 1 year ago

Hello @firasdib

It seems to me that on many occasions it is necessary or convenient to write notes about the regular expression. I think it would be very useful to have a section on the regular expression page where you can write those notes and save them using the usual mechanism (CTRL+S).

The requirement is similar to Add notes as optional on tests #299 but with a more general scope.

🙏 Thank you very much for making this service available!

Kind regards, Claudio Salvio

firasdib commented 8 months ago

Hi @claudio-salvio

Typically, in regex, you'd use comments to write those notes. By using the (?x) flag, you enable comments (and also ignore superfluous whitespace). See this example.

I hope this helps.