Can I use Regular Expression "classes" in V?
For example, in Perl I would use [[:contr:]] to search for a control character
Can I use Regex classes?
Moderator: vuser
-
- Site Admin
- Posts: 287
- Joined: Fri Apr 30, 2010 5:50 pm
Re: Can I use Regex classes?
Yes, you can specify character classes by using [[:class:]]For example, in Perl I would use [[:contr:]] to search for a control character
However, :contr: is not a valid Perl class name -you need to use :cntrl:
The following URL contains a list of valid Perl class names:
http://perldoc.perl.org/perlre.html
Regards,
Charles.