Thread: Regex question?

    #1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2009
    Posts
    5
    Rep Power
    0

    Regex question?


    Hi, I thought I'd share some of my insight after seeing too many bad questions that either get ignored, rejected, or misunderstood in this forum. I'm surprised there isn't already any suggestions/guidelines in asking regex questions.

    So you got a problem with regex? Great, here's some guidelines on asking:
    1. Describe your problem or background that is important to it.
    2. Give sample data (the input data, the haystack...etc..)
    3. Give the expected output/matches from your sample data.
    4. Give the actual output that you have if you've attempted something already.
    5. Provide code if necessary, if your problem concerns it.
    6. We assume its a php regex related as this is phpfreaks, but you still need to specifiy (if not obvious) if you are talking about POSIX (ereg) or PCRE (preg) flavor.
    7. Be patient/grateful and don't demand things. Regex questions may take longer than expected to be answered, they're tougher sometimes.

    Moderator's Note: Signature removed by Nilpo
    Last edited by Nilpo; July 13th, 2009 at 06:35 AM.
  2. #2
  3. Contributing User
    Devshed Beginner (1000 - 1499 posts)

    Join Date
    Mar 2006
    Location
    Hindustan
    Posts
    1,121
    Rep Power
    1309
    Hi friend,


    I would had been glad if you'd had posted this in Regex Forum.




    Regards.
    Trimbak D. Bankar.
  4. #3
  5. Devshed Beginner (1000 - 1499 posts)

    Join Date
    Jan 2004
    Location
    New Springfield, OH
    Posts
    1,233
    Rep Power
    1469
    Originally Posted by gilbertsavier
    We assume its a php regex related as this is phpfreaks
    ...and had the right forum site.

    Thread moved and post cleaned up.
    Don't like me? Click it.

    Scripting problems? Windows questions? Ask the Windows Guru!

    Stay up to date with all of my latest content. Follow me on Twitter!

    Help us help you! Post your exact error message with these easy tips!

IMN logo majestic logo threadwatch logo seochat tools logo