Käynnissä

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.

Taidot: Hahmonsovitus, PHP

Näytä lisää: 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

About the Employer:
( 1 review ) New Delhi, India

Projektin tunnus: #1725406

Myönnetty käyttäjälle:

dtbang

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

200 $ USD 7 päivässä
(15 arvostelua)
4.0

3 freelanceria on tarjonnut keskimäärin 208 $ tähän työhön

kommandant

i can help

350 $ USD 2 päivässä
(22 arvostelua)
4.6
lhdgriver

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

75 $ USD 2 päivässä
(0 arvostelua)
0.0