regex code advice
Posted: Fri Feb 27, 2015 10:15 am
I could not find the regex forum in the list so I am posting in scripting.
I am attempting to limit this to one match of the below.
This is what I have and it matches both anchor tags as one match.
How can I separate?
I am attempting to limit this to one match of the below.
Code: Select all
<a title="anythingText" href="http://www.anythingText.com" target="_blank"><img class="image" alt="Image" src="GetFile.aspx?Page=anythingText.anythingText&File=anythingText.jpg"></a><p class="imagedescription">anythingText<br /></div><br /><br />anythingText<br /><br /><a title="anythingText" class="internallink" href="GetFile.aspx?Page=anythingText.anythingText&File=anythingText.docx" target="_blank">anythingText</a>
Code: Select all
(<a title="(.)*?" class="internallink" (target="_blank" )?href="GetFile\.aspx\?(Provider=((.)*?)&)?Page=((.)+?)&File=((.)+?)">)((.|\n|\r)+?)(</a>))