I'm looking at stdmarkup.php
<div><div>## [[#anchor]]</div><div>Markup('[[#','<[[','<font size="4">/(?>\\[\\[#([A-Za-z][-.:\\w]*))\\]\\]/e</font>',</div><div>  "Keep(TrackAnchors('$1') ? '' : \"<a name='$1' id='$1'></a>\", 'L')");</div>
</div><div><br></div><div>and <a href="http://www.w3.org/TR/html4/types.html#type-name">http://www.w3.org/TR/html4/types.html#type-name</a></div><div><br></div><div>I'm trying to get an anchor such <a href="http://ttc.org.nz/pmwiki/pmwiki.php/TararuaFootprints/MangatainokaValley">as </a></div>
<div>[[#Mangatainoka–Herepai–Ruapae]]</div><div>to work, (seems reasonable to me).</div><div><br></div><div>I'm not clear about how this regex works, but my <a href="http://www.regular-expressions.info/charclass.html">studied </a>interpretation is</div>
<div><br></div><div>(?>  ---- no backtrack, but not really clear why () is required</div><div>\\[[\\[[#   to  \\]]\\]]     ---- is the scope of the expression (not sure what /e does)</div><div>[A-Za-z] ---- anchor name has to start with A-Za-z, followed by</div>
<div>[-.:\\w] ---- character set of hyphen period colon and "word character" A-Za-z0-9_, not sure why there is a \\ (escaped \)</div><div>* ---- repeat 0 or more times</div><div><br></div><div>so it looks like my anchor should work?</div>
<div><br></div><div>any suggestions appreciated</div><div><br></div><div>thanks</div><div><br></div><div>Simon</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div>