/    Sign up×
Community /Pin to ProfileBookmark

Regular expressions are impressive, I love and hate at the same time!

1) Can you help me to catch the name from a string like this one ?

[CODE]userID=97634874&[COLOR=”Gray”]amp;BrowseIds=97634874,190597911,173670145,135064971,188147805,98941745,113368787,223888491,210361950,200102975,23225231,133173843,80583279,139074039,140077870,207724261,95312302,135971723,201402748,177938591,153157148,183893349[/COLOR]” title=”Abbas Issa Mustacorp</a>[/CODE]

The gray color can be or not or change… and it is my difficulty.

I made like this one:

[CODE]$regexp = sprintf(“/userID=%s[COLOR=”Gray”][help here][/COLOR]stileDD([a-zA-Z]+)s/Uis”,$userid);[/CODE]

Thanks for your help!! I will still love the reg exp!

to post a comment
PHP

1 Comments(s)

Copy linkTweet thisAlerts:
@uncokeauthorDec 10.2008 — Sorry! It was so simple! just a dot into the gray part!

But it was not working for a stupid mistake ! I wrote "tile" insted of "title"

Sorry!
×

Success!

Help @uncoke 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 6.16,
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: @nearjob,
tipped: article
amount: 1000 SATS,

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

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...