Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12

Thread: Quick PHP Help

  1. #11

    Default

    Sorry for the late reply, simply do.
    Code:
    preg_match("#^([A-Z']+)$#i", $string, $matches)
    I've changed it from \w+ because that also includes numbers and underscores, but with this new one it'll only work with A-Z, a-z, and apostrophes.

  2. #12
    Join Date
    Aug 2005
    Location
    Standing on the rooftops...
    Posts
    1,501
    Tokens
    6
    Habbo
    ReviewDude

    Latest Awards:

    Default

    Quote Originally Posted by Iszak View Post
    Sorry for the late reply, simply do.
    Code:
    preg_match("#^([A-Z']+)$#i", $string, $matches)
    I've changed it from \w+ because that also includes numbers and underscores, but with this new one it'll only work with A-Z, a-z, and apostrophes.
    You're a legend

    By the way, the overall project is here: http://www.reviewdude.co.uk/tlw/
    Last edited by ReviewDude; 01-05-2009 at 08:11 AM.
    The sunlight hurts my eyes...

    ~ Love, Patrick ~


    Know your stuff about Habbo? I'm looking for high-quality article writers - PM for more!

    I am Habbox's most trusted seller of VIP/Donator - over 100 months total sold without issue.

Page 2 of 2 FirstFirst 12

Posting Permissions

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