Hello.
Can you tell me if I wrote the content quotation regular for quotes?
preg_match_all('/("|\')(.*)("|\')/iU', '0:1:2;;3:4:5:6:7;;8:"9,10,,","12,13",23:24;25:26;27:\'28\';;;14:15,16,17,18,19,20,21:22;;;', $matches); I am confused by one moment. Namely, the output is:
Array ( [0] => Array ( [0] => "9,10,," [1] => "12,13" [2] => '28' ) [1] => Array ( [0] => " [1] => " [2] => ' ) [2] => Array ( [0] => 9,10,, [1] => 12,13 [2] => 28 ) [3] => Array ( [0] => " [1] => " [2] => ' ) ) I just got used to the fact that 2 values are displayed, and here I have as many as 4. Is this how it should be, or did I get it wrong, as always?
.*captures every last quotation mark, if you need the closest ones better.*?and the choice of options from one symbol is easier to do in square brackets. total[\'"](.*?)[\'"]and there will be no unnecessary capture groups - Mike/(["']).*?\1/this is going to be so very good. - ReinRaus