String matching class (in PHP?)

OK, hoping someone else has a better memory than me :-)
I’m pretty sure a couple of months ago I ran across a free class to extract data from text files, that worked something like:

bc. $f = new ParserThing();
$f->startString(’

Price:’);
$f->endString(’;

‘);
$match = $f->getMatch();

Now, does anyone remember where this class can be found? From what I remember it should be simpler to use than constructing regular expressions to parse data out from 15 webpages.

1 comment so far ↓

#1 josh on 06.16.04 at 6:50 am

just saw your web page when i was searching for a similar thing on google. I searched specifically for a class and found one that might be what you are looking for. I’ll paste the code so you dont have to subscribe/etc (though it is free to subscribe)

- josh halstead

jhalstead.com/class.string_functions.php.txt

that’s my personal web page (hence the jhalstead.com …j(osh)halstead) which i uploaded the php file to. hehe :)

Leave a Comment