preg_match

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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"

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux