I have a preformatted text where I want to run a regular expression. The text is something like :
codeA *->refbrjkgbrkjgbrjukbgreukgbrukgbegurebgrek klgfhnrjkgnrjgbrejkgbrjkbegjkrbbrkegbrejb reopjgporejytopjrotjrphjpojprhjtporhtjrph codeB *->4p3tuop43tu4optj4rofdgfnreklfnrklefnrkenr ropeturojgorejgeolgjrelgjrlgrhelkghelghlg regjrejgoejeojigjreilgjelgjrilgjlerjgelrj
From each 'paragraph', I want to match the part under codeA and codeB
The problem I have is with matching the newline characters. I write :
preg_match('/code.{1}\n\*->(.*)\ncode./')
but it doesn't match... I think the problem is the newlines

New Topic/Question
Reply



MultiQuote



|