I am creating a developers site with code views, but when they type code i need to it a certain way so in the php and can convert it to html a special way,
The markdown i need to be able to work with is
```codechanger ``php <?php ?> `` ``c# $foo = bar; `` ```
So once the first regex select code changer I then need to be able to select each code but i just need to know the regex to match everything inside there even if it is on multiple lines.
This is what i was trying to use
preg_match_all("/\`\`codechanger.*?^\`\`[^ ]*/s", $text, $out);
Any questions feel free to ask.