rimbaud1964
Programmer
howdy - good day phpFreaks,
well i want to apply the preg_match to a special task want to perform a regular expression match
preg_matc - what does it do;
int preg_match ( string pattern, string subject [, array &matches [, int flags [, int offset]]] ) Searches subject for a match to the regular expression given in pattern.
If matches is provided, then it is filled with the results of search. $matches[0] will contain the text that matched the full pattern, $matches[1] will have the text that matched the first captured parenthesized subpattern, and so on.
we believe: we guess that ereg is a regular expression function, based on the POSIX regular expression standard. Preg (Based on PCRE) should be used instead, as its more extensive, often faster, and POSIX will disappear into PCECL in future versions). In likelihood, we ll take the source code and use preg_match/replace or substr on it, searching for the bits you need. Using PCRE modifiers, we can specify that the file's contents are treated as
a single line, which negates the need for linebreak sanitization.
job i want to run preg_match/replace or substr on a file;
So out of intuition and looking at some examples i managed to come up with these data...
see http://www.phpbbdoctor.com/doc_tables.php see the sourcecode and have alok at it:
phpbb_categories
phpbb_forums Forums for your board.
phpbb_groups A group of users
phpbb_posts Posts for your board.
phpbb_posts_text The text for the post
phpbb_topics Topics for your board.
phpbb_users Base user information,
and the timestamp - i need the timestamp.
how to parse the Source - of a example page http://www.phpbb.de/viewtopic.php?t=129465&view=next
see the sourcecode and now imagine - i need the data
categories,
forums
posts
post_texts
post_topics
users
Finds all data on web page with that have to do with the data
http://www.phpbbdoctor.com/doc_tables.php but how do we proceed.
i want to run the preg_matc the results should go into an ARRAY that can be taken to a database, a phpBB-database with certain tables, were the data were put in.
i hope that i colud tell whats needed. And now i need some advices.
btw - can we benefit from this
look forward to hear from you
regards rimbi
well i want to apply the preg_match to a special task want to perform a regular expression match
preg_matc - what does it do;
int preg_match ( string pattern, string subject [, array &matches [, int flags [, int offset]]] ) Searches subject for a match to the regular expression given in pattern.
If matches is provided, then it is filled with the results of search. $matches[0] will contain the text that matched the full pattern, $matches[1] will have the text that matched the first captured parenthesized subpattern, and so on.
we believe: we guess that ereg is a regular expression function, based on the POSIX regular expression standard. Preg (Based on PCRE) should be used instead, as its more extensive, often faster, and POSIX will disappear into PCECL in future versions). In likelihood, we ll take the source code and use preg_match/replace or substr on it, searching for the bits you need. Using PCRE modifiers, we can specify that the file's contents are treated as
a single line, which negates the need for linebreak sanitization.
job i want to run preg_match/replace or substr on a file;
So out of intuition and looking at some examples i managed to come up with these data...
see http://www.phpbbdoctor.com/doc_tables.php see the sourcecode and have alok at it:
phpbb_categories
phpbb_forums Forums for your board.
phpbb_groups A group of users
phpbb_posts Posts for your board.
phpbb_posts_text The text for the post
phpbb_topics Topics for your board.
phpbb_users Base user information,
and the timestamp - i need the timestamp.
how to parse the Source - of a example page http://www.phpbb.de/viewtopic.php?t=129465&view=next
see the sourcecode and now imagine - i need the data
categories,
forums
posts
post_texts
post_topics
users
Finds all data on web page with that have to do with the data
http://www.phpbbdoctor.com/doc_tables.php but how do we proceed.
i want to run the preg_matc the results should go into an ARRAY that can be taken to a database, a phpBB-database with certain tables, were the data were put in.
i hope that i colud tell whats needed. And now i need some advices.
btw - can we benefit from this
look forward to hear from you
regards rimbi