How to ask a regex question?


Posted on 16th Feb 2014 07:03 pm by admin

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.

156 Like 17 Dislike
Previous php-forum Next php-forum
Other php-forum

quotes changing
hi all

in my content

opening quotes " changes to “

close qu

article site help remaining text
Hi all hope you will be fine
I am creating a article site in this site i want to put some text on

Please help with code for SMTP authenticated PHP email form
Hello, I'm creating a PHP email form, and for this particular server, I have to use SMTP Authenticat

Storing Values taken from a DB...
Using this code it will generate a short list from my database

<?php
mysql_connect

small inaccuracies
I have this code to convert fractional base 10 into base 2:

while($num > 0)

printing links
Hi every1

i am connecting to a table in sql and the looping through with a while ($ var = my

FPDF Help
I've been playing with the FPDF module. I was building a form and rolling right along and then sudde

php problem?
I don't think I'm stupid, but maybe I am.

I am working on a sit for a friend I am try to put

help with php
It's not displaying or pulling anything out of the database.


Code: <html><

Need help with an email blocker for a guessbook
I am new with php and here is a simple guessbook page but I am being hit with spam from a group of t

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash