Menu
Hi!
I need hel with regular expression in php
I have a string like this:
uml:nck:rglmn.mm:tipo:2006-08-04;20:1
uml:nck:rglmn.mm:tipo:2006-08-04;25:4
uml:nck:rglmn.mm:tipo:2006-08-04;505:40
I need to take number after last two points (es: 1 or 4 or 40)
this is my code:
[code=php]
preg_match(‘/:([1-9]d+)$/’,$string,$v_match);
$x=$v_match[1];
but something is wrong..can you help me?
thanks