I want a partner for preg_split for multiple matches. For example
preg_split('/(.be|.fr|.im|.fi)/i', $input[$i], -1, PREG_SPLIT_DELIM_CAPTURE);
I tried something like this but doesnt work. I want for example to search for these
5 strings and if it finds them split the string there. Anyone know?
D4n1sD
0
Light Poster
Recommended Answers
Jump to PostWhat did not work ? Give an example of what you want to happen, and what does happen. Did you get an error ?
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.