Well, I guess it needs to be avaluated since it is part of
Parse::RecDescent Grammar. According to Parse::RecDescent docs all
backslashes need to be escaped.

Max

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Philip S Tellis
Sent: Friday, March 07, 2003 10:54 PM
To: 'HTML::Template List'
Subject: RE: [htmltmpl] Cyrillic arguments in HTML::Template::Expr
functions


Sometime on Mar 7, MaxG assembled some asciibets to say:

> var           : /\\w\\w*/  { \\\$item[1] } # \w stands for
aplphanumeric plus "_"

the double backslash means match a literal backslash, so it should match

\ w \ zero or more w  (a backslash followed by w followed by backslash 
followed by zero or more w

I don't understand how it works, unless this is a string that's being 
evaluated before being used as a regex.

In any case, what is written as aa* in other regex languages is written 
as a+ in perl, so you just want \w+

Philip



-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The
debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost
and 
disoriented. TotalView can help you find your way. Available on major
UNIX 
and Linux platforms. Try it free. www.etnus.com
_______________________________________________
Html-template-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/html-template-users



-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com
_______________________________________________
Html-template-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/html-template-users

Reply via email to