Can I use Regex classes?

Use this forum to ask any questions and to submit bug reports

Moderator: vuser

Post Reply
vuser
Posts: 38
Joined: Sat May 01, 2010 8:11 pm

Can I use Regex classes?

Post by vuser »

Can I use Regular Expression "classes" in V?

For example, in Perl I would use [[:contr:]] to search for a control character
FileViewer
Site Admin
Posts: 287
Joined: Fri Apr 30, 2010 5:50 pm

Re: Can I use Regex classes?

Post by FileViewer »

For example, in Perl I would use [[:contr:]] to search for a control character
Yes, you can specify character classes by using [[:class:]]

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.
Post Reply