After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 584968 - Natural-Embebbed Regular Expression
Natural-Embebbed Regular Expression
Status: RESOLVED DUPLICATE of bug 607702
Product: vala
Classification: Core
Component: Parser
unspecified
Other All
: Normal enhancement
: ---
Assigned To: Vala maintainers
Vala maintainers
Depends on:
Blocks:
 
 
Reported: 2009-06-06 00:00 UTC by IagoSRL
Modified: 2010-01-29 18:35 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description IagoSRL 2009-06-06 00:00:23 UTC
Like in JavaScript (EcmaScript), let use regular expressions embebbed into de Vala language, with own syntaxm, and not like strings:

Considering an example:

RegularExpression reg = new RegularExpression("{\\d}*[a-zA-Z0-9]{2, 10}", RegularExpressionOption.Global || RegularExpressionOption.InsensitiveCase);

With javascript like syntax:

RegularExpression reg = /{\d}*[a-zA-Z0-9]{2, 10}/gi;
Comment 1 Jürg Billeter 2010-01-29 18:35:27 UTC
Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find.

*** This bug has been marked as a duplicate of bug 607702 ***