0

I have this string (varchar) in a column:

a:2:{s:15:"info_buyRequest";a:5:{s:4:"uenc";s:68:"aHR0cDovL3d3dy5wbGlzc2VlLWV4cGVydGUuZGUvdmFyZXNlLTEyNDk_X19fU0lEPVU,";s:7:"product";s:3:"270";s:15:"related_product";s:0:"";s:7:"options";a:10:{i:32112;s:5:"73815";i:32111;s:5:"73813";i:32109;s:3:"920";i:32110;s:3:"780";i:32113;s:5:"73816";i:32114;s:5:"73820";i:33541;s:5:"78496";i:33542;a:1:{i:1;s:0:"";}i:33539;s:5:"78485";i:33540;s:5:"78489";}s:3:"qty";s:1:"2";}s:7:"options";a:6:{i:0;a:7:{s:5:"label";s:10:"Plisseetyp";s:5:"value";s:13:"Verspannt VS2";s:11:"print_value";s:13:"Verspannt VS2";s:9:"option_id";s:5:"32112";s:11:"option_type";s:5:"radio";s:12:"option_value";s:5:"73815";s:11:"custom_view";b:0;}i:1;a:7:{s:5:"label";s:15:"Befestigungstyp";s:5:"value";s:11:"Klebeplatte";s:11:"print_value";s:11:"Klebeplatte";s:9:"option_id";s:5:"32111";s:11:"option_type";s:5:"radio";s:12:"option_value";s:5:"73813";s:11:"custom_view";b:0;}i:2;a:7:{s:5:"label";s:13:"Höhe (in mm)";s:5:"value";s:3:"920";s:11:"print_value";s:3:"920";s:9:"option_id";s:5:"32109";s:11:"option_type";s:5:"field";s:12:"option_value";s:3:"920";s:11:"custom_view";b:0;}i:3;a:7:{s:5:"label";s:14:"Breite (in mm)";s:5:"value";s:3:"780";s:11:"print_value";s:3:"780";s:9:"option_id";s:5:"32110";s:11:"option_type";s:5:"field";s:12:"option_value";s:3:"780";s:11:"custom_view";b:0;}i:4;a:7:{s:5:"label";s:13:"Schienenfarbe";s:5:"value";s:23:"weiß pulverbeschichtet";s:11:"print_value";s:23:"weiß pulverbeschichtet";s:9:"option_id";s:5:"32113";s:11:"option_type";s:5:"radio";s:12:"option_value";s:5:"73816";s:11:"custom_view";b:0;}i:5;a:7:{s:5:"label";s:24:"Bedienstab (ohne Gelenk)";s:5:"value";s:17:"Keinen Bedienstab";s:11:"print_value";s:17:"Keinen Bedienstab";s:9:"option_id";s:5:"32114";s:11:"option_type";s:9:"drop_down";s:12:"option_value";s:5:"73820";s:11:"custom_view";b:0;}}}

Now, what I need is the 920 and the 780 from that string. The front always has Höhe (in mm) and Breite (in mm), the other stuff can differ. I tried using a regex to get the two numbers from the string, but failed. How could I do that?

Thanks!

4

0 回答 0