Using preg_split on alpha-numeric string in PHP

Adamz

New Member
Consider the string \[code\]12345aaa\[/code\]. I want to use \[code\]preg_split()\[/code\] on it so only the numeric part of it will be returned (i.e. \[code\]12345\[/code\]). How would I write the regex for it ?Thank you in advance !
 
Top