Top "Preg-split" questions

preg_split() is a PHP function which allows splitting a string using a regular expression.

Split String into Text and Number

I have some strings which can be in the following format sometext moretext 01 text text sometext moretext 002 text text 1 (somemoretext) …

php regex preg-match preg-split
Split a text into sentences

How can I split a text into an array of sentences? Example text: Fry me a Beaver. Fry me a …

php regex string preg-split
Regex match exact words

I want my regex to match ?ver and ?v, but not ?version This is what I have so far: $parts = …

php regex preg-split
PHP Regex to match the last occurrence of a string

My string is $text1 = 'A373R12345' I want to find last none digital number occurrence of this string. So …

php regex preg-match preg-split
Function split() is deprecated , preg_split(): No ending delimiter ',' found

I have a PHP script written 10 years ago. Now we moved the script to new server and it's not working. …

php split delimiter preg-split
php preg_split error when switching from split to preg_split

I get this warning from php after the change from split to preg_split for php 5.3 compatibility : PHP Warning: preg_…

php regex split preg-split