clever-lang/clever — Issue #64: Syntactic sugar for regular expression
Author: felipensp
Created: 2012-01-14 22:28:54+00:00
State: open
Labels: TODO

I guess it would be interesting to have the Perl regex syntax to create an implict Pcre instance.
i.e. /regex/ creates implicitly Pcre("regex"). Just like Javascript does.

Examples:

```
if (/fo+bar/.matches("fooobar")) {

}
```

```
String num = /(\d+)/.match(str).group(0);
```