正規表現を使用して質問のグループから質問と選択肢と回答を抽出する方法
例 :
1. An FMS system, besides controlling navigation, thrust and auto-nav,
also provides:
a) take-off and landing warnings
* b) dedicated status and warnings
c) GPWS warnings
2. EADI sky and ground display is provided by:
a) synthetic TV signals
* b) raster scan
c) stroke pulse
私はこのような出力が必要です:
$question[0] = "An FMS system, besides controlling navigation, thrust and auto-nav,also provides:";
$choice1[0] = "take-off and landing warnings";
$choice2[0] = "dedicated status and warnings";
$choice3[0] = "GPWS warnings";
$question[1] = "EADI sky and ground display is provided by:";
$choice1[1] = "synthetic TV signals";
$choice2[1] = "raster scan";
$choice3[1] = "stroke pulse";
記号は、*
どのパターンを書くべきかを答えることを意味します