soju One shot ! | t'es newbie en explications aussi non ? sinon je pense avoir compris, une regex et le tour est joué, par exemple :
Code :
- $str = "INSERT INTO 'position_history_private' VALUES (266648,7514622,0,0,4,'2004-05-10 14:47:30',956,242414,'2004-05-11','2004-05-11',0,'',';0;');";
- if (preg_match("#^INSERT INTO 'position_history_private' VALUES \(\d*,\d*,\d*,\d*,\d*,'([^']*)'#i", $str, $match))
- {
- $test = $match[1];
- }
|
|