Hey, ask 2 regular to merge into a regular how to write Ah, thank you
This post was last edited by Cluonani on 2013-05-13 14:40:09
This is what you want to match.
Primary Color:
Multi-Color
Multi Pack Indicator:
No
Battery Type:
Does not contain a Battery
This one, how do you merge it into one?
$a = Preg_match_all ('/lightrowhead.*?> (. *?):. *? Lightrow.*?> (. *?) $a = Preg_match_all ('/darkrowhead.*?> (. *?):. *? Darkrow.*?> (. *?)
I'm not writing this right.
$a = Preg_match_all ('/[lightrowhead| Darkrowhead].*?> (. *?):. *? [lightrow| Darkrow].*?> (. *?)
Ask for expert guidance
Share to:
------Solution--------------------
(xx
------Solution--------------------
yy
------Solution--------------------
In square brackets, it becomes a character list, using parentheses
$a = Preg_match_all ('/(Lightrowhead
------Solution--------------------
Darkrowhead) .*?> (. *?):. *? (Lightrow
------Solution--------------------
Darkrow) .*?> (. *?)Do not want to join the forward quote can write
$a = Preg_match_all ('/(?: Lightrowhead
------Solution--------------------
Darkrowhead) .*?> (. *?):. *? (?: Lightrow
------Solution--------------------
Darkrow) .*?> (. *?)
You can write if you need to pair before and after
$a = Preg_match_all ('/(Lightrow
------Solution--------------------
Darkrow) head.*?> (. *?):.*?\\1.*?> (. *?)