<?php $subject = 'this is:d-123,ithink'; var_dump( preg_match('/\bd-(\d+)\b/', $subject, $matches) ); var_dump( $matches );
You have javascript disabled. You will not be able to edit any code.