<!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML//EN">
<title>MHonArc Resources: VARREGEX
</title>
<table border=
0><tr valign=
"top">
<td align=
"left" width=
"50%">[Prev:
<a href=
"usinglastpg.html">USINGLASTPG
</a>]
</td><td><nobr>[
<a href=
"../resources.html#varregex">Resources
</a>][
<a href=
"../mhonarc.html">TOC
</a>]
</nobr></td><td align=
"right" width=
"50%">[Next:
<a href=
"weekdays.html">WEEKDAYS
</a>]
</td></tr></table>
<!-- *************************************************************** -->
<dt><strong>Envariable
</strong></dt>
<dd><p><code>M2H_VARREGEX=
</code><var>Perl-regex
</var>
<dt><strong>Element
</strong></dt>
<dd><p><code><VARREGEX
></code><br>
<var>Perl-regex
</var><br>
<code></VARREGEX
></code><br>
<dt><strong>Command-line Option
</strong></dt>
<dd><p><code>-varregex
</code><var>Perl-regex
</var>
<!-- *************************************************************** -->
<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.
<table border=
0 cellpadding=
4>
<td><strong><font color=
"red">WARNING
</font></strong></td>
<td><p><b>DO NOT MESS WITH THIS RESOURCE UNLESS YOU KNOW WHAT YOU ARE
DOING
</b>. If not set properly, page output can become munged.
One symptom of a bad VARREGEX setting is the occurrence of numerous
'
<tt>$
</tt>' characters in generated pages. Make sure to test
your VARREGEX setting before using it with production archives.
<!-- *************************************************************** -->
<!-- *************************************************************** -->
<h2>Resource Variables
</h2>
<!-- *************************************************************** -->
<p>The following does a more stricter match:
\$([^(\$]+(?:\([^)]+\))?)\$
<p>Although slower than the default, it minimizes potential conflicts
in resource files encoded in multi-byte character sets like SJIS.
<!-- *************************************************************** -->
<!-- *************************************************************** -->
<!-- *************************************************************** -->
<table border=
0><tr valign=
"top">
<td align=
"left" width=
"50%">[Prev:
<a href=
"usinglastpg.html">USINGLASTPG
</a>]
</td><td><nobr>[
<a href=
"../resources.html#varregex">Resources
</a>][
<a href=
"../mhonarc.html">TOC
</a>]
</nobr></td><td align=
"right" width=
"50%">[Next:
<a href=
"weekdays.html">WEEKDAYS
</a>]
</td></tr></table>
$Date:
2002/
07/
27 05:
13:
11 $
<br>
<img align=
"top" src=
"../monicon.png" alt=
"">
<a href=
"http://www.mhonarc.org/"
><strong>MHonArc
</strong></a><br>
Copyright
© 2000,
<a href=
"http://www.earlhood.com/"
>Earl Hood
</a>,
<a href=
"mailto:mhonarc@mhonarc.org"
>mhonarc@mhonarc.org
</a><br>