▼  Site Navigation Main Articles Search  ▼  Anime + Manga Anime Reviews Anime Characters Gallery Screenshots Manga Reviews  ▼  Misc News Links to Webcomics Bible Quotes About Older Musings
site version 7.3
Old Marvel PCRE script
written by: admin


Date Written: 7/23/11 Last Updated: 8/15/11

Note: due to the complete site revamp of marvel.com this program is no longer applicable or needed.  The exact number of digital comics to read is visible on their site.

first go to the marvel digital comics page, highlight and copy everything on the page (ctrl a then ctrl c) and plug it into the page form and hit submit and the number of digital comics available will be displayed.
<?php
$string=$_POST['data'];
if ($string !=""){
$string=str_replace(" ","",$string);
$string=str_replace("issues)","issue)",$string);
preg_match_all("/\((.*?)issue\)/",$string,$storage);
$string=array_sum($storage[1]);
}
?>
<form action=<?php echo $_SERVER['PHP_SELF']; ?> method="POST">
<textarea rows=45 cols=150 name="data"><?php print $string; ?></textarea>
<br><input type='submit' name="queryButton" value="Submit">
</form>


You can try the program out here.


TAGS: pcre, marvel
copyright 2005–2021