<?php $str = "php test - [2013.1 - some string variable]"; list($wanted,$junk) = explode(" - ",$str); echo $wanted."!!";
You have javascript disabled. You will not be able to edit any code.