I have a sip.conf file that contains data like that :
#<COMPTE
[6007](template)
fullname = ggg
username = ggg
secret = nana
COMPTE>#
#<COMPTE
[6008](template)
fullname = dada
username = dada
secret = dada
COMPTE>#
I have created a method using java :
Matcher matcher = Pattern.compile("(?m)^#<COMPTE.*?COMPTE>#",Pattern.MULTILINE | Pattern.DOTALL).matcher(chaine);
while (matcher.find()) {
comptes=matcher.group();
}
I want something like that in PHP I have tried many things but it doesn't seems to work, any help ?