preg_match
| From: | Jon | Date: | Thu, 18 Aug 2005 21:50:33 +0000 |
| Subject: | preg_match | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-220899@lists.php.net to get a copy of this message | ||
preg_match_all("/Charges \s\s+ $total x (.+) /siU", $single, $from_invoice);
The text has "Charges" then a variable amount of spaces a previously picked
decimal number" x " (and the data I want)" "
is this correct or am I missing something? It seems to work sometimes and
not others and I have not quite figured out what makes it fail.
The error I get is
Warning: preg_match_all(): unknown modifier '#' in "file"