php: Regex and the caret -
So I am trying to create a regex to include the curriculum content of the text, but after that the 3 digits Except number one period and some text, I am trying to divide the course text into different corrections, so that I can finish with an array where every element has a class course. For example, suppose we have:
$ text = "295. Student-Beginner courses or projects (1) open for students completing first year courses. Clinical work, regional Magazines for work, legal assistance, personal research and writing, writing or editing professor, student-taught courses, or other legal projects of serious, educational nature. Law 295 Approves Administrator and Dean 296. Legal essay. (8-13) "
And this huge regex:
$ lineDelimiter = = '/ (?: [0- 9] {3} (?: \ .5 | \ - [1-5])? [AZ]?) (?: - - [0- 9] {3} (?: \ .5 | \ [[0-9 ])? [AG]?)? \. \ S *. + \. \ S * (: ((\ [[0-9] + \ - * [0-9] * \)) (?? \ s * or \ s * \ ([0-9] + \ - * [0 -9] * \))) \ s * (? Prerequisite) + (???.?.? \ N +) \ \ n (: .. \ s * Mr. \ \ s +,? ... .. | \ s * Ms. \,? |? | \ S * Dr. \ \ s +,? | \ S * \ sFaculty *,?) * [^ (: [0-9]? {3} \. . +]] / '; The last part of that huge rezux, in which
'/ [^ (?: [0- 9] {3} \. +)] / ' Errors when I preg_match_all
"295. Student-preliminary courses or projects. (29)" Legal essay. (8-13) "I am trying to leave the part. 1-2) Open to students who complete the course of first year. Clinical work, regional work, legal aid, personal research and writing, professors Writing or editing, magazines, student-taught courses, or other legal projects are serious, educational nature. Law 295 requires the approval of the Administrator and Dean. "
"Post-text" itemprop = "text"> You can try this to match everything except the last part with the numbers and the lesson you want:
'/ ([\ s \ S] +) (? = \ D {3} \. <+> -
[\ s \ S] + matches everything > (? =) does not match things in brackets, but ensures that the accessories are followed after the brackets before brackets. -
\ D {3} \ .. +
Comments
Post a Comment