Results 1 to 8 of 8

Thread: preg functions

  1. #1

    Thread Starter
    Conquistador
    Join Date
    Dec 1999
    Location
    Australia
    Posts
    4,527

    Question preg functions

    I don't understand preg

    Anyone got a good tutorial about preg_replace etc?

  2. #2
    Fanatic Member cpradio's Avatar
    Join Date
    Apr 2002
    Posts
    616
    I have never found any. I like looking at the comments made on php.net over ways they have used preg_replace, preg_match, etc.

    Also, the PHP Bible talks a bit about it. So you may want to look into that book.
    http://cpradio.net/
    Administrator @ WDForums and a Moderator @ WebXpertz City Forums

  3. #3

    Thread Starter
    Conquistador
    Join Date
    Dec 1999
    Location
    Australia
    Posts
    4,527
    thanks, because i really don't understand it :P

  4. #4
    Frenzied Member wpearsall's Avatar
    Join Date
    Feb 2002
    Location
    England / UK
    Posts
    1,065
    LMAO!

    Learn through reading other php scripts!

    Its how i found out how to use it in the end.

    "Learn through doing" best way... shame many dont use that either -- I can post a quick example later on (not got my scripts on me @ college) of how i replace BB Code for a SQL Query

    (Unless some1 else does it)

    But its pretty "funky" and "easy" to copy :P
    Wayne

  5. #5
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    Originally posted by wpearsall
    shame many dont use that either
    Not everybody learns the same way...
    My evil laugh has a squeak in it.

    kristopherwilson.com

  6. #6
    Frenzied Member Rick Bull's Avatar
    Join Date
    Apr 2002
    Location
    England
    Posts
    1,444
    I like reading through other people's scripts, but you have to make sure you're reading through good code, otherwise you'll pick up bad habbits.

  7. #7
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    Originally posted by Rick Bull
    I like reading through other people's scripts, but you have to make sure you're reading through good code, otherwise you'll pick up bad habbits.
    Good point
    My evil laugh has a squeak in it.

    kristopherwilson.com

  8. #8
    Frenzied Member Rick Bull's Avatar
    Join Date
    Apr 2002
    Location
    England
    Posts
    1,444
    Yeah I picked up a load of bad habbits with HTML that way, then when I tried my pages in Netscape they looked really bad. So I had to go and relearn everything properly

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width