I want to split a string based on multiple delimiters.
How to split a string with multiple strings as separator?
For example:
I have a string: "/create #channel 'name' 'description of the channel' #field1 #field2"
And I want an array with:
/create
#channel
name
description of the channel
#field1
#field2
Another example, i have: "/send @user 'A messsage'"
And I want:
/send
@user
A message
How to solve it? Any help, please? :-(