Hello friends,
I have a question about regex and php. I'm trying to grab a certain piece of information from a website which was programmed porly (I don't have access to edit it, but need their information daily). The word that I set regex to lookfor is a static word like Order Number, and then the data that I need to take is lets say the number itself, but the problem is its on a completely different line in the code, and the number is never the same, sometime it'll be 6 digits, sometime 9, sometimes with letters.
I've done this is pearl but never in PHP: Is there a way that i can get everything in the code from the static finding of Order Number to EOF, and then parse it from the end of the word number to the next static word found or for the next 6 chars/digits found or something?
I hope that was clear enough to understand, sorry if it was confusing, let me know if it was. Hope you guys can help, it would be awesome help =D
Thankx guy!
Ps. I'm slightly new to PHP and regex so any detailed instructions would be great, or links, etc. Thankx again