Displaying page
of
pages;
Items to
Title |
Test
Details
Script Block Parser
|
Expression |
<script(?:(?:.*(?<src>(?<=src=")[^"]*(?="))[^>]*)|[^>]*)>(?<content>(?:(?:\n|.)(?!(?:\n|.)<script))*)</script>
|
Description |
This one enables you to parse well-formed script tags to get both the src value and the block content, if specified. I'm using this one in some AJAX where I get script blocks back in a text reponse and need to parse them and add them to the DOM so they get processed.
|
Matches |
<script type="text/javascript" src="Test.js"></script>
|
Non-Matches |
<script src=Test.js></script>
|
Author |
Rating:
Not yet rated.
Ambrose
|
Displaying page
of
pages;
Items to