<div id="answerField">
Tufted astrocytes. Globose tau positive neurofibrillary tangles in neurons. Thorn astrocytes (contain tau along the length of their processes, often binucleated). Gross pathology - midbrain atrophy.
<span class="imageLink" onclick="displayImage("images/PSP-pathology_1.png");">
(see image 1)
</span>
(see image 2)
</div>
(the onclick handler is added later, by my own code)
The goal being to wrap each text fragment of type (see image n) with a span of class imageLink. Instead, only the first match is made. The issue doesn't appear to be due to the RegExp, as replacing it with /\w+/ just matches the first word, not all words. I had the same problem with 0.20 and just tried the new version today, with the same results.
Trying to use version 0.40 to match text elements within a div
Searching within the following div...
(the onclick handler is added later, by my own code)
The goal being to wrap each text fragment of type (see image n) with a span of class imageLink. Instead, only the first match is made. The issue doesn't appear to be due to the RegExp, as replacing it with /\w+/ just matches the first word, not all words. I had the same problem with 0.20 and just tried the new version today, with the same results.
Great tool, and thanks for all the work so far!