I need help on php regexp that cross line of records which will extract some content from text file with the following conditions:- 1. Regexp will test for record line that has end of string with colon. 2. When colon is detected, retrieved all subsequences lines of record into array that belong to xxx properties.
eg output will be like this: $arr['computer properties']['operating system']="Window XP Prof" $arr['computer properties']['OS service Pack']="Services Pack 2" $arr['cpu properties']['cpu name']="Intel Pentium 4" Text File Content Computer Properties: Operating System Window Xp Prof OS Service Pack Service Pack 2 CPU Properties: CPU Name Intel Pentium 4 Clock Speed 3306Mhz Multipliers 23x Motherboard Properties: Model ID pm4800-xxx-xxxx Manifacturer Intel Serial Number bla-bla
