vb.org Archive
>
vBulletin 3 Discussion
>
vB3 Programming Discussions
> Regular expression help
PDA
View Full Version :
Regular expression help
cashpath
09-27-2007, 05:44 PM
$current_ps = preg_split ('|\s{2,}|s', $current_line);
Can someone tell me what this does?
Eikinskjaldi
09-27-2007, 08:49 PM
It splits a line of text into an array, with the splitting token being 2 or more whitespace characters next to each other.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.