PHP: How to get all regular expression matches?

love123456789

New Member
Is it possible to get all regular expression matches in PHP? I need a script that will, for example, match \[code\].+\[/code\] in \[code\]abc\[/code\] and give the result:Array(\[code\]a\[/code\], \[code\]b\[/code\], \[code\]c\[/code\], \[code\]ab\[/code\], \[code\]bc\[/code\], \[code\]abc\[/code\])
 
Back
Top