<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML//EN"> <html> <head> <title>MHonArc Resources: VARREGEX</title> </head> <body> <address> <a href="../resources.html#varregex">MHonArc Resource List</a><br> </address> <hr> <h1>VARREGEX</h1> <!-- *************************************************************** --> <hr> <h2>Syntax</h2> <dl> <dt><strong>Envariable</strong><dt> <dd><p> <code>M2H_VARREGEX=</code><var>Perl-regex</var> </p> </dd> <dt><strong>Element</strong><dt> <dd><p><br> <code><VARREGEX></code><br> <var>Perl-regex</var><br> <code></VARREGEX></code><br> </p> </dd> <dt><strong>Command-line Option</strong><dt> <dd><p><br> <code>-varregex </code><var>Perl-regex</var> </p> </dd> </dl> <!-- *************************************************************** --> <hr> <h2>Description</h2> <p>VARREGEX defines the Perl regular expression matching <a href="../rcvars.html">resource variables</a>. The regex should define a back reference that contains the name of the resource variable and its arguments surround by parentheses. </p> <p>Do not mess with this resource unless you know what you are doing. </p> <!-- *************************************************************** --> <hr> <h2>Default Setting</h2> <pre> \$([^\$]*)\$ </pre> <!-- *************************************************************** --> <hr> <h2>Resource Variables</h2> <p>N/A </p> <!-- *************************************************************** --> <hr> <h2>Examples</h2> <p>The following does a more stricter match: </p> <pre> \$([^(\$]+(?:\([^)]+\))?)\$ </pre> <p>Although slower than the default, it minimizes potential conflicts in resource files encoded in multi-byte character sets like SJIS. </p> <!-- *************************************************************** --> <hr> <h2>Version</h2> <p>2.4.5 </p> <!-- *************************************************************** --> <hr> <h2>See Also</h2> <p> </p> <!-- *************************************************************** --> <hr> <address> 00/10/28 11:13:13<br> <img align="top" src="../monicon.gif" alt=""> <a href="http://www.pobox.com/~ehood/mhonarc.html" ><strong>MHonArc</strong></a><br> Copyright © 2000, <a href="http://www.pobox.com/~ehood" >Earl Hood</a>, <a href="mailto:mhonarc@pobox.com" >mhonarc@pobox.com</a><br> </address> </body> </html>