Đang Thực Hiện

REGEX for Question Papers

I want a script that can extract individual questions from a question paper. The script can be a regex or be a combination of code + Regex. Code in PHP is prefered!

---

INPUT

---

English Paper 2010

Q.1 FIll in the blanks with prepositions

a) I am _______ the bridge

b) We are going ________ the details of this project

Q.2 Read the passage and answer the following questions

John is an average American child. His favourite color is

blue. He loves to eat blueberry muffins. He studies in the 5th

grade.

i) What country does John belong to?

ii) What is his favourite food?

iii) How old is John?

---

OUTPUT

---

array(

[0] => I am _______ the bridge

[1] => We are going ________ the details of this project

[2] => Read the passage and answer the following questions

John is an average American child. His favourite color is

blue. He loves to eat blueberry muffins. He studies in the 5th

grade.

i) What country does John belong to?

ii) What is his favourite food?

iii) How old is John?

)

---

That is, it should detect the extent of questions appropriately.

Kỹ năng: Pattern Matching, PHP

Xem thêm: regex pattern, regex is, regex c, project php question paper, regex, question paper, php regex, papers, c regex, b blue, php regex extract, regex php, question php, php food script, eat project, pattern matching, american php, grade english, angadn, question papers, question answer project, american english paper, question project english, script eat, eat script

Về Bên Thuê:
( 1 nhận xét ) New Delhi, India

Mã Dự Án: #1725406

Đã trao cho:

dtbang

Hi, I can build this REGEX script for you. Thank you.

$200 USD trong 7 ngày
(15 Đánh Giá)
4.0

3 freelancer đang chào giá trung bình $208 cho công việc này

kommandant

i can help

$350 USD trong 2 ngày
(22 Đánh Giá)
4.6
lhdgriver

Is input stored in .txt? It just need pattern matching, so i'm confident to handle it.

$75 USD trong 2 ngày
(0 Đánh Giá)
0.0