Answer the question
In order to leave comments, you need to log in
How to make such a routine?
Good day, you need to get from the string: sdsdas {*TAG*name:[p1,p2,p3]} sdasdas
Or maybe an asdasdas {*TAG*name} sadsadas
Array
array("name", "p1,p2,p3");
//Или соответственно только
array("name");
"/{\*TAG\*(.+)(?:\:[(.+)])?\}"
Answer the question
In order to leave comments, you need to log in
Alternative option from a nearby camp:\*.+\*(?<name>[^:]*)(:\[(?<params>[^}]*)\])?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question