All pastes #295944 Raw Edit

Something

public text v1 · immutable
#295944 ·published 2006-12-29 21:29 UTC
rendered paste body
Assuming the expression is this: /\{[a-z]+\:[a-zA-Z\_]+ ("(.*?)" ?){1,}/
We are using preg_match_all()
And assuming the string was: {func:date "l" "z" "i"}

This is the array of matches:

Array
(
    [0] => Array
        (
            [0] => {func:date "l" "z" "i"
        )

    [1] => Array
        (
            [0] => "i"
        )

    [2] => Array
        (
            [0] => i
        )

)