1. Post #1
    quincy18's Avatar
    September 2007
    1,018 Posts
    I really suck at making regular expressions, I need a regular expression that matches

    this patern : [any character / characters here]

    this worked for specific targets :

    Code:
    '/\['.$sTarget.'\]/'
    but I have no idea on how to do it on any character/word thats in between the brackets.

  2. Post #2
    Gold Member
    Darkimmortal's Avatar
    April 2009
    2,740 Posts
    Code:
    /\[.*?\]/

  3. Post #3
    Gold Member
    andersonmat's Avatar
    May 2008
    2,607 Posts
    -snip-

    What he said. :ninja: