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
Pattern matching in php
Old 01-21-2009, 06:48 AM Pattern matching in php
Banned

Posts: 923
Name: Geoff Vader
Location: In my dreams
Trades: 0
I want to learn how to do complex pattern matching in php - since one of the machines I run isn't linux, alas (so i can't just encant and cast spells in perl and turn intel chips into frogs and make macintoshes dance and sing like the golden child with his pepsi cans).

It also uses aspx, so I would like to learn pattern matching with aspx too, but it prob belongs in the "other languages" section, plus I have a big book on aspx but only the sprawling web for php, so if anyone can break down the basics of php pattern matching and point me toward the complicated shiyat, that'll be mighty obama of you (obama is my new word for anything good).

have an obama day!
witnesstheday is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 01-21-2009, 06:56 AM Re: Pattern matching in php
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
http://www.regular-expressions.info/php.html

http://www.regular-expressions.info/dotnet.html

Have fun
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 01-21-2009, 06:57 AM Re: Pattern matching in php
Insensus's Avatar
Ultra Talker

Posts: 487
Name: Mark Stegeman
Location: Netherlands, Europe
Trades: 0
If you're familiar with pattern matching in Perl, you'll love the preg_match, preg_match_all and preg_replace functions in PHP.
They actually use a Perl compatible pattern syntax.
__________________
<?php ($helpfull>0)?$talkupation++ : '';?>
Insensus is offline
Reply With Quote
View Public Profile
 
Old 01-22-2009, 12:53 AM Re: Pattern matching in php
Banned

Posts: 923
Name: Geoff Vader
Location: In my dreams
Trades: 0
Quote:
Originally Posted by Insensus View Post
If you're familiar with pattern matching in Perl, you'll love the preg_match, preg_match_all and preg_replace functions in PHP.
They actually use a Perl compatible pattern syntax.
Yeah, you're right, I just went to the first of the two links Chris posted and within seconds my eyes were popping out of my head and I was scrolling like a porn surfer on a gallerypage of free videos.

I like it. This looks fun. I was expecting like one command, which could match really rubbishly, but instead I find there's loads of fun to have.

Sometimes I wonder whether knowing all these things can ever bring anything other than a bit of mental joy, but usually I don't even think about that. Besides, when I've saved up a bit of dosh, maybe I'll sit down and just do a bit of programming nonstop for an entire month - take a break from all else just to make software. In the meantime we learn in tidbits, eh?
witnesstheday is offline
Reply With Quote
View Public Profile
 
Old 01-22-2009, 01:19 AM Re: Pattern matching in php
jason_alan's Avatar
Super Talker

Posts: 100
Name: Jason
Location: Seattle, WA
Trades: 0
It can be fun to do regex and sometimes it can drive you nuts when you're trying to come up with a complex pattern that isn't matching how you think it should. Here's a web ajax tool I use sometimes when I'm stuck.
http://regex.larsolavtorvik.com/
Also, there are some ide's out there that have regex tools as well. I.E. Komodo IDE
jason_alan is offline
Reply With Quote
View Public Profile
 
Old 01-22-2009, 01:41 AM Re: Pattern matching in php
Banned

Posts: 923
Name: Geoff Vader
Location: In my dreams
Trades: 0
Cool tool.

My first php pattern matching script will be a boycotted-brand search script, for me to put on to freehosted sites which can run php...

Last edited by witnesstheday; 01-22-2009 at 02:37 AM..
witnesstheday is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Pattern matching in php
 

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.16948 seconds with 12 queries