<?php $name = 'test*'; preg_match('/^(?P<name>[\w\-]+)(?:(?P<quantifier>\+(?P<minimum>\d+)?|\*))?$/', $name, $matches); print_r($matches);
You have javascript disabled. You will not be able to edit any code.