Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Can someone tell me what this means?
Old 11-18-2009, 06:43 PM Can someone tell me what this means?
Physicsguy's Avatar
404 - Title not found

Latest Blog Post:
Challenges
Posts: 824
Name: Scott
Location: Ontario
Trades: 0
Hello,

While surfing to find an answer to yet another one of my problems, I've found a working solution; this:

PHP Code:
preg_match("/\[\d+](.*)\[\d+]/"$text$matches); 
But I have no idea what the "/\[\d+](.*)\[\d+]/" is.

I've tried deleting some things, but I either get an error or it doesn't work.

What does it mean? Thanks
__________________
Check out my
Please login or register to view this content. Registration is FREE
Physicsguy is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-18-2009, 11:56 PM Re: Can someone tell me what this means?
Brian07002's Avatar
Defies a Status

Posts: 2,140
Name: ...
Location: ...
Trades: 0
that is a regular expression.

Hth,
Brian
__________________
Made2Own

Please login or register to view this content. Registration is FREE
Brian07002 is offline
Reply With Quote
View Public Profile
 
Old 11-19-2009, 09:13 PM Re: Can someone tell me what this means?
JeremyMiller's Avatar
WT Moderator

Posts: 1,712
Name: Jeremy Miller
Location: Las Vegas, NV
Trades: 0
This particular regular expression finds text that matches this pattern:

Start with a [, have 1 or more digits, followed by ], then any number of characters (including 0 characters), followed by a [, 1 or more digits, followed by a ]

For example, [123]abc def ghi[kl jdfadf [456]
__________________
Jeremy Miller

Please login or register to view this content. Registration is FREE
JeremyMiller is offline
Reply With Quote
View Public Profile Visit JeremyMiller's homepage!
 
Reply     « Reply to Can someone tell me what this means?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.84571 seconds with 12 queries