これは、1つのmysqlテーブルフィールドの内容です。
Flash LEDs: 0.5W
LED lamps: 5mm
Low Powers: 0.06W, 0.2W
Remarks(1): this is remark1
----------
Accessories: Light Engine
Lifestyle Lights: Ambion, Crane Fun
Office Lights: OL-Deluxe Series
Street Lights: Dolphin
Retrofits: SL-10A, SL-60A
Remarks(2): this is remark2
----------
Infrared Receiver Module: High Data Rate Short Burst
Optical Sensors: Ambient Light Sensor, Proximity Sensor, RGB Color Sensor
Photo Coupler: Transistor
Remarks(3): this is remark3
----------
Display: Dot Matrix
Remarks(4): this is remark4
さて、備考を読んで変数に格納したいと思います。備考(1)、備考(2)等を修正しました。「これはremark1です」などはフォーム入力フィールドから取得されるため、柔軟性があります。
基本的に必要なのは、「Remarks(1):」と「--------」の間のすべてを読み取り、変数に保存することです。
ご協力いただきありがとうございます。