/    Sign up×
Community /Pin to ProfileBookmark

Search Keywords Regexp

Hey, anybody good with regular expressions who can help me with this? Whay I’m trying to do is create a regular expression which can take a string of keywords and turn it into an array…

Word “and some in quotes”
0 => ‘Word’
1 => ‘and some in qotes’

Word+Another
0 => ‘Word’
1 => ‘Another’

Word&Another
0 => ‘Word Another’

to post a comment
PHP

3 Comments(s)

Copy linkTweet thisAlerts:
@bokehJul 24.2006 — Can you try to explain that a bit better?
Copy linkTweet thisAlerts:
@Vectorman211Jul 24.2006 — Yeah... I'm like freaked out man!
Copy linkTweet thisAlerts:
@NogDogJul 24.2006 — How would you want this split?
<i>
</i>Word&amp;"and some+in quotes"
×

Success!

Help @MicahCarrick spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.28,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...