Reputation: 2312
i have need to split string, by regex:
so if i have:
'aaa555aaaaaaaaaaaaaaaaaaaaaa55555555555555555'
so the result MIGHT be:
'aaa 555 aaa aaaa aaaaa aaaa aaa aaa 55555 555 555 555 555'
(the last item might be 1-2 characters length).
so i started with regex:
preg_match_all('/([a-z]+)|([0-9]+)/')
the question how to apply the random part. if it is possible... :)
Upvotes: 0
Views: 31