This site I'm working on relies heavily on user input through forms, and all that data
needs to be checked before being sent a database. I knew PHP3's regular expression
functions should solve my problem, but I didn't know how to form the regular expressions
in the first place. What I needed were some sample strings--obviously the first places I
looked were the PHP3 manual and the POSIX 1002.3 specification, but they don't help much
in the way of exemplifying. Adding to that, I had a really hard time finding good
literature on the Web about the subject. I eventually got to know how to do it, mostly
through experimenting, and seeing there wasn't much to it, I decided to write down this
straight-out introduction to the syntax and a step-by-step on building regular expressions
to validate money and e-mail address strings. I just hope it manages to clear the fog
around the subject for all you fellow programmers.
First of all, let's take a look at two special symbols:
'^' and
'$'. What they do is
indicate the
start and the
end of a string, respectively, like this:
- "
^The": matches any string that starts with "The";
- "
of despair$": matches a string that ends in the substring "of
despair";
- "
^abc$": a string that starts and ends with "abc" -- that
could only be "abc" itself!
- "
notice": a string that has the text "notice" in it.
You can see that if you don't use either of the two characters we mentioned, as in the
last example, you're saying that the pattern may occur anywhere inside the string --
you're not "hooking" it to any of the edges.
There are also the symbols
'*',
'+', and
'?', which denote the number of times a
character or a sequence of characters may occur. What they mean is: "zero or
more", "one or more", and "zero or one." Here are some examples:
- "
ab*": matches a string that has an a followed by zero or more
b's ("a", "ab", "abbb", etc.);
- "
ab+": same, but there's at least one b ("ab",
"abbb", etc.);
- "
ab?": there might be a b or not;
- "
a?b+$": a possible a followed by one or more b's
ending a string.
You can also use
bounds, which come inside braces and indicate ranges in the
number of occurences:
- "
ab{2}": matches a string that has an a followed by exactly
two b's ("abb");
- "
ab{2,}": there are at least two b's ("abb",
"abbbb", etc.);
- "
ab{3,5}": from three to five b's ("abbb",
"abbbb", or "abbbbb").
Now, to quantify a sequence of characters, put them inside parentheses:
- "
a(bc)*": matches a string that has an a followed by zero or
more copies of the sequence "bc";
- "
a(bc){1,5}": one through five copies of "bc."
There's also the '|' symbol, which works as an OR operator:
- "
hi|hello": matches a string that has either "hi" or
"hello" in it;
- "
(b|cd)ef": a string that has either "bef" or
"cdef";
- "
(a|b)*c": a string that has a sequence of alternating a's and
b's ending in a c;
A period (
'.') stands for any single character:
- "
a.[0-9]": matches a string that has an a followed by one
character and a digit;
- "
^.{3}$": a string with exactly 3 characters.
Bracket expressions specify which characters are allowed in a single position
of a string:
- "
[ab]": matches a string that has either an a or a b
(that's the same as "a|b");
- "
[a-d]": a string that has lowercase letters 'a' through 'd' (that's
equal to "a|b|c|d" and even "[abcd]");
- "
^[a-zA-Z]": a string that starts with a letter;
- "
[0-9]%": a string that has a single digit before a percent sign;
- "
,[a-zA-Z0-9]$": a string that ends in a comma followed by an
alphanumeric character.
Just don't forget that bracket expressions are an exception to that rule--inside them,
all special characters, including the backslash ('\'), lose their special powers (i.e.,
"[*\+?{}.]" matches exactly any of the characters inside the brackets).
And, as the regex man pages tell us: "To include a literal ']' in the list, make it
the first character (following a possible '^'). To include a literal '-', make it the
first or last character, or the second endpoint of a range."
| Comments: |
| RE: Delete word in a sentence which is in bra | mattbarrah | 09/25/07 16:14 |
| Need help | Ivan Panchev | 08/14/07 04:09 |
| A note about "^abc$" | Ivan Panchev | 08/13/07 03:00 |
| Delete word in a sentence which is in bracket | Betül | 07/27/07 02:44 |
| RE: email validation | RegExpress 2.0 | 06/16/07 05:09 |
| on line registration | sata | 05/06/07 00:30 |
| Help on reg exp in php | Praveen Mohite | 02/10/06 02:15 |
| Need to extract multiple lines from log file | Sumit Kumar | 11/24/05 06:27 |
| holdem poker | holdem poker | 11/17/05 12:09 |
| phentermine rx | phentermine rx | 11/17/05 12:00 |
| texas holdem poker | texas holdem poker | 11/17/05 11:02 |
| free online poker | free online poker | 11/17/05 07:41 |
| cheap phentermine | cheap phentermine | 11/17/05 05:08 |
| texas holdem poker | texas holdem poker | 11/17/05 04:00 |
| cheap phentermine | cheap phentermine | 11/17/05 03:46 |
| boots | boots | 11/17/05 03:11 |
| meridia | meridia | 11/17/05 03:03 |
| phentermine cod | phentermine cod | 11/17/05 01:53 |
| phentermine cod | phentermine cod | 11/16/05 23:46 |
| diamonds | diamonds | 11/16/05 22:15 |
| texas hold'em | texas hold'em | 11/16/05 22:06 |
| viagra rx | viagra rx | 11/16/05 21:37 |
| order hoodia | order hoodia | 11/16/05 21:09 |
| meridia rx | meridia rx | 11/16/05 20:04 |
| cingular ringtones | cingular ringtones | 11/16/05 19:13 |
| generic viagra | generic viagra | 11/16/05 17:32 |
| cheap meridia | cheap meridia | 11/16/05 17:23 |
| phentermine | phentermine | 11/16/05 17:18 |
| buy shoes | buy shoes | 11/16/05 17:04 |
| phentermine cod | phentermine cod | 11/16/05 15:32 |
| holdem poker | holdem poker | 11/16/05 14:59 |
| phentermine rx | phentermine rx | 11/16/05 13:02 |
| poker | poker | 11/16/05 12:49 |
| video poker | video poker | 11/16/05 12:46 |
| casino games | casino games | 11/16/05 12:43 |
| phentermine rx | phentermine rx | 11/16/05 11:03 |
| buy phentermine | buy phentermine | 11/16/05 10:27 |
| buy phentermine | buy phentermine | 11/16/05 09:47 |
| cheap adipex | cheap adipex | 11/16/05 09:05 |
| xenical | xenical | 11/16/05 08:57 |
| forex | forex | 11/16/05 08:25 |
| texas hold em | texas hold em | 11/16/05 08:23 |
| online poker | online poker | 11/16/05 08:12 |
| online poker | online poker | 11/16/05 08:12 |
| diamond rings | diamond rings | 11/16/05 07:05 |
| weight loss pills | weight loss pills | 11/16/05 06:13 |
| casino | casino | 11/16/05 06:04 |
| phentemine | phentemine | 11/16/05 05:55 |
| free online poker | free online poker | 11/16/05 05:50 |
| online casino | online casino | 11/16/05 05:15 |
| meridia | meridia | 11/16/05 05:13 |
| cheap phentermine | cheap phentermine | 11/16/05 05:02 |
| free poker | free poker | 11/16/05 04:41 |
| cialis | cialis | 11/16/05 04:14 |
| loans | loans | 11/16/05 03:59 |
| free texas holdem | free texas holdem | 11/16/05 03:50 |
| buy phentermine | buy phentermine | 11/16/05 03:44 |
| online poker | online poker | 11/16/05 03:42 |
| online casino | online casino | 11/16/05 01:31 |
| phentemine | phentemine | 11/16/05 01:29 |
| phentermine rx | phentermine rx | 11/16/05 01:09 |
| buy meridia | buy meridia | 11/16/05 01:07 |
| cheap phentermine | cheap phentermine | 11/15/05 23:12 |
| texas poker | texas poker | 11/15/05 22:06 |
| diamonds | diamonds | 11/15/05 22:00 |
| Forex trading software | Forex trading software | 11/15/05 21:25 |
| buy phentermine | buy phentermine | 11/15/05 21:03 |
| buy phentermine | buy phentermine | 11/15/05 21:02 |
| phentermine | phentermine | 11/15/05 19:07 |
| forex | forex | 11/15/05 18:54 |
| phentermine | phentermine | 11/15/05 18:40 |
| poker room | poker room | 11/15/05 18:35 |
| free ringtones | free ringtones | 11/15/05 18:18 |
| cheap phentermine | cheap phentermine | 11/15/05 17:46 |
| RE: Re Validation expression in regular expresion | JeXuS | 11/13/05 03:27 |
| Re Validation expression in regular expresion | siva | 11/11/05 03:50 |
| RE: Strip ALL that is between < and > | alvense | 11/10/05 21:52 |
| Match a word | robinson | 10/28/05 00:34 |
| Regular expression | mahipal saran | 10/15/05 11:05 |
| Rajesh Kumar for Programming help | rajesh | 10/15/05 06:17 |
| RE: Validating money string example | Jeff | 10/04/05 12:58 |
| poker | poker | 09/16/05 07:10 |
| Regular Expression | Nakeshia Lewis | 09/05/05 16:21 |
| Validating money string example | jamie | 08/26/05 19:17 |
| RE: Regular expressions.. | Vaskar Basak | 08/18/05 14:28 |
| RE: date validation | needhelp | 08/03/05 00:10 |
| RE: Regular expressions.. | Nick sherman | 07/26/05 13:27 |
| implement a variable in a regular expression | selva | 06/28/05 02:35 |
| Regular Expression string format check. | Girish Sharma | 06/24/05 08:49 |
| Reading, writing, updating files | Ben_12 | 05/24/05 04:36 |
| RE: Mailing Address | cutiepie | 04/24/05 01:27 |
| regular expression to match valid Windows XP | Fernando | 04/19/05 12:26 |
| RE: Infromation between div tag printed | Mukesh Variya | 04/04/05 06:41 |
| PHP 5 regex | Mark Furtney | 04/03/05 18:21 |
| + is legitimate for an email username | David | 03/28/05 08:38 |
| ereg_replace() trim() emulation | FuRiOuS1 | 03/23/05 02:28 |
| Great article.. | Scott - phphq.net | 02/26/05 00:14 |
| php learning | Khawar | 01/23/05 23:46 |
| Great. Tnx ! | Naser Ezzati | 01/09/05 15:29 |
| Great Article | Michael Lombard | 12/28/04 05:34 |
| Simply Superb | Mathar | 12/23/04 20:41 |
| RE: password validation | Nima | 12/16/04 22:03 |
| Its really helpful | Mainak Bagchi | 11/21/04 03:36 |
| Good to Learn | A.V.Madhav | 09/15/04 04:21 |
| Thank You | Rob Warwick | 09/05/04 22:52 |
| excellent article !!, thanx | Manish Mohania | 08/09/04 04:45 |
| RE: numbers | Thomas Chua | 05/21/04 02:04 |
| cheers | chuck | 05/07/04 06:48 |
| Great Tut | Adrian | 03/01/04 14:13 |
| THANKS ALOT! | Parazuce | 02/20/04 22:31 |
| Regular expressions.. | Reddy | 02/05/04 14:18 |
| Allowing <? ?> tags in Regular Expression | Andy Lancaster | 01/13/04 05:03 |
| password validation | Carmel | 01/09/04 16:05 |
| Help me | Tarzan | 01/07/04 23:52 |
| help me | vibra | 12/25/03 17:25 |
| RE: Validating username? an easier way? | Nesher | 11/03/03 13:41 |
| Thanks! Dario | shekar | 10/02/03 02:40 |
| thankful kiwi | mikecandle | 09/07/03 05:25 |
| Brilliant Article, thanks Dario | Tom Bamford | 08/18/03 13:18 |
| RE: This is a Comments page, not a support forum | cieplyromek | 07/31/03 08:08 |
| Best RegExp Article I've Read! | Scott | 07/07/03 21:22 |
| Thanks Dario ! | Benjamin Lacaze | 06/14/03 06:08 |
| This is a Comments page, not a support forum | Maggie | 04/29/03 01:59 |
| RE: date validation | Chris | 04/08/03 01:27 |
| date validation | Gothami | 02/20/03 05:07 |
| RE: Validating username? an easier way? | Patrick Reilly | 02/13/03 10:34 |
| RE: Obtaining a whole HTML section from a pag | Frugle | 01/14/03 06:09 |
| RE: email validation | THM | 12/11/02 09:31 |
| a valid person name format | Luis Costa | 12/09/02 19:18 |
| RE: Removing Whitespaces | javier | 12/06/02 18:41 |
| RE: Removal of white spaces | javier | 12/06/02 18:31 |
| RE: Implement a variable in a regexp | Regexp | 12/04/02 17:29 |
| RE: regular expression | nigel | 11/27/02 02:15 |
| Escpaing double quote in a range | Jason | 11/05/02 19:46 |
| preg_replace on that regular expression | melbiz | 11/01/02 11:14 |
| Thank you, well done! | beaty | 10/31/02 10:06 |
| warning message ? | Selim MERİÇ | 10/30/02 10:07 |
| RE: Problem with alt-attributs in image-tags | Kyle | 10/26/02 01:36 |
| RE: detecting repetitive characters (e.g. ffffff) | Dirk te Winkel | 10/18/02 20:23 |
| Problem with alt-attributs in image-tags | Devel | 10/15/02 04:40 |
| Some ereg I need to do in PHP... | Philippe Veronneau | 10/03/02 11:39 |
| RE: NOT notation | Tom Myer | 10/02/02 09:02 |
| RE: checking a file extension ?? help please | Jean-Marc Molina [goa103] | 09/29/02 15:40 |
| Identify HTML tags with regular expression | Marty Slade | 09/24/02 13:52 |
| RE: How to allow spaces in RegExp?? Help!! | iodine | 09/24/02 10:55 |
| Replace within HTML | Greg DiFalco | 09/24/02 09:56 |
| Apostrophe in email username | Mark Edwards | 09/23/02 21:13 |
| RE: How to Determine a String is Only Alphabet? | Richard France | 09/23/02 20:31 |
| numbers | Sean John | 09/12/02 13:10 |
| Upload query | sharad mittal | 09/12/02 11:56 |
| RE: How to limit the # of characters in a string | hammer | 09/12/02 11:54 |
| Help me with replace tag [ ], good example | AngelRoyo | 09/08/02 20:20 |
| How to allow spaces in RegExp?? Help!! | Florian Bruch | 08/30/02 19:38 |
| NOT an email domain | Ron Shannon | 08/29/02 02:53 |
| Regular Expression Library | Jean-Marc Molina | 08/22/02 07:13 |
| RE: How to Determine a String is Only Alphabet? | Jean-Marc Molina | 08/22/02 06:05 |
| RE: Replace string OUTSIDE of HTML tags | Jens | 08/21/02 19:07 |
| Validating username? an easier way? | James | 08/21/02 14:41 |
| RE: Capitalization | matthew | 08/19/02 15:22 |
| checking a file extension ?? help please | mike | 08/15/02 12:19 |
| New User! Reg EXPR | nik_crash | 08/09/02 05:04 |
| Implement a variable in a regexp | Davide | 08/09/02 03:59 |
| Replace string OUTSIDE of HTML tags | Walter | 08/08/02 00:21 |
| Number to Figure Conversion Function | SKM | 08/07/02 04:53 |
| RE: NOT notation | Steve | 08/06/02 06:09 |
| RE: New User! Reg EXPR | Steve | 08/05/02 07:47 |
| NOT notation | Paul Gibbs | 07/31/02 06:36 |
| RE: Error in e-mail example | Juan Londono | 07/30/02 20:56 |
| Error in e-mail example | Peter Simard | 07/27/02 12:42 |
| How to limit the # of characters in a string | Cory Gagliardi | 07/23/02 19:12 |
| New User! Reg EXPR | Gaurav_k | 07/22/02 06:29 |
| eregreplace with mirc colorcode | Matt Lush | 07/18/02 21:58 |
| How to Determine a String is Only Alphabet? | Kwangho Seo | 07/18/02 08:23 |
| another question about reg expr | badsocietyguy | 07/15/02 16:57 |
| RE: Capitalization | mstenz-design | 07/14/02 17:42 |
| Capitalization | Dzigner | 07/10/02 20:13 |
| RE: One more question on regexp | Victor | 07/08/02 13:34 |
| RE: ereg_replace img tags -- PLEASE HELP!!! | Victor | 07/03/02 13:28 |
| Expresiones regulares Urgente!!! | Victor Palmar | 07/02/02 21:34 |
| ereg_replace img tags -- PLEASE HELP!!! | vic | 06/28/02 09:34 |
| RE: Stripping spaces, dashes etc. | Elwaleed Elbashier | 06/27/02 08:55 |
| RE: Removal of white spaces | Elwaleed Elbashier | 06/27/02 08:39 |
| RE: regex tld validation | Elwaleed Elbashier | 06/27/02 08:10 |
| To validate websites names | Elwaleed Elbashier | 06/27/02 07:29 |
| One more question on regexp | Steve | 06/25/02 17:17 |
| regexp questions (3) | Steve | 06/25/02 16:26 |
| Strip comments | Alex | 06/24/02 03:59 |
| Mutil eregi_replace() from 1 string | Rob | 06/23/02 03:04 |
| Another Hard one. Pls.... help | Gigi | 06/22/02 19:27 |
| RE: how can i do to remove every html code | Emre Sokullu | 06/22/02 18:58 |
| txt2regex | Hugo Cisneiros | 06/20/02 15:58 |
| how can i do to remove every html code | alex | 06/19/02 12:12 |
| delete extract of pattern | steve | 06/16/02 15:41 |
| RE: getting rid of images | Henry | 06/13/02 07:56 |
| RE: Removal of white spaces | Bruno | 06/13/02 05:08 |
| Find lines that contains a string but not ano | Maxime Ducharme | 06/11/02 12:23 |
| RE: Everything between <a an /a> | Lizard | 06/11/02 08:57 |
| Replacing HTML Attributes ? | Karthik | 06/10/02 05:51 |
| Everything between <a an /a> | Clay Tutaj | 06/09/02 22:02 |
| getting between something and something else | tuor | 06/09/02 15:30 |
| RE: How to parse a string. | Digital Cowboy | 06/07/02 13:03 |
| How to parse a string. | mfc5 | 06/06/02 11:13 |
| checking the length of a text area | griffspot | 06/03/02 16:18 |
| 'AND' equiv? | kimm | 05/31/02 07:40 |
| Replacing characters with tilde | Rafa | 05/31/02 07:08 |
| RE: regular expression | daniel | 05/29/02 05:59 |
| RE: how do i read href="blah" | dave | 05/28/02 16:31 |
| RE: Why do 80% of these questions go unanswered? | Paulo | 05/20/02 16:59 |
| How to use RegExp to parse data betn. Html ta | vikramvj | 05/20/02 06:53 |
| Get the html tags template without content ?? | Deepak Jain | 05/20/02 02:37 |
| regular expression | Tapas K Mandal | 05/17/02 16:01 |
| expressions | Niloy | 05/11/02 15:11 |
| RegExp for date to validate month/leap year | Ventura Sampra | 05/07/02 09:33 |
| help me quick, please | Cash | 05/03/02 09:20 |
| Using RegExp to replace img-Tags? | Tom | 05/02/02 05:19 |
| regular expressions | A. GANESH | 05/01/02 11:39 |
| RE: how to parse XML, looking for fields of data | Chris | 04/30/02 12:29 |
| RE: how to parse XML, looking for fields of data | Grumbler | 04/29/02 12:15 |
| if and until problems with expr and OPTIND | Kristin | 04/28/02 21:01 |
| how do i read href="blah" | Max | 04/27/02 00:48 |
| RE: Match Alpha or Numeric | Allard | 04/24/02 14:13 |
| RE: eregi's pattern problem | ossi | 04/23/02 07:20 |
| Match Alpha or Numeric | Ricta | 04/16/02 20:30 |
| how to parse XML, looking for fields of data | Dan | 04/16/02 18:06 |
| eregi's pattern problem | Magnus Nirgi | 04/14/02 16:38 |
| quoting, sed, and newline char | Kristin | 04/14/02 11:16 |
| RE: print html tags to be displayed | Brian Douros | 04/11/02 22:14 |
| print html tags to be displayed | harneu | 04/10/02 05:23 |
| RE: help with regular expressions | Kristin | 04/06/02 23:39 |
| RE: Help on reg expression. | deepak | 04/06/02 04:39 |
| Why do 80% of these questions go unanswered? | A student | 04/05/02 16:55 |
| RE: Showing sourcecode in my guestbook | Thomas | 04/05/02 11:16 |
| help me | babak | 04/04/02 03:31 |
| Help on reg expression. | Phani | 04/03/02 20:34 |
| form validation | Craig Blackman | 04/02/02 15:28 |
| help with regular expressions | Kristin | 03/30/02 18:49 |
| Ending dot for FQDN is valid | Hugo van der Kooij | 03/30/02 17:19 |
| Matching img tags (advanced) | inki | 03/28/02 06:02 |
| Replacing URL with link - Problem | ciuc | 03/27/02 12:14 |
| problems replacing image path ! | aanzi | 03/26/02 12:32 |
| More accurate email validation | saanti | 03/25/02 10:35 |
| Exclusion ... ? | Jules | 03/22/02 09:29 |
| regex tld validation | mitch | 03/20/02 04:53 |
| RE: REMOVING LANGUAGE | Kurt Willey | 03/19/02 14:12 |
| Stripping spaces, dashes etc. | Paul Stewart | 03/14/02 09:17 |
| regex help! | Ben Summers | 03/11/02 20:07 |
| REMOVING LANGUAGE | Fraser | 03/08/02 14:48 |
| How to strip all HTML and make links of urls? | Laban | 03/03/02 08:41 |
| RE: Error with email validation expression | Marshall | 03/02/02 14:21 |
| Using ereg to find char's for *nix usernames | John Seth | 02/28/02 16:56 |
| Final piece of URL Matching RE needed | JAM | 02/26/02 07:50 |
| RE: Removal of white spaces | Robin Collins | 02/24/02 23:42 |
| Finding images in a mysql table... | Erling | 02/22/02 11:46 |
| RE: how to detect if a string to have spaces? | Erik Neves | 02/20/02 10:06 |
| RE: Replace space for _ between < and > | Erik Neves | 02/20/02 10:02 |
| How to list files, without a particular type? | Milind | 02/19/02 14:11 |
| Error with email validation expression | Pras | 02/18/02 18:59 |
| how to detect if a string to have spaces? | christian | 02/17/02 09:27 |
| RE: IP ADDRESS | Chris | 02/13/02 03:27 |
| Spam Filter | John Genovese | 02/12/02 21:59 |
| Need Help! | Dustin Kaufmann | 02/10/02 23:14 |
| Java regular Expression | Phani | 02/07/02 14:54 |
| how to...? | steve | 02/06/02 23:59 |
| RE: How to strip all script tags and contents? | Barnie | 02/05/02 05:35 |
| finding 3 words in a string | Matt | 01/31/02 10:40 |
| Not able to print session variable | Nikhil | 01/25/02 03:28 |
| RE: negating phrases | Chen 'FireFly' Avinadav | 01/22/02 14:01 |
| RE: help with multiple occurrence replacement | Chen 'FireFly' Avinadav | 01/22/02 13:56 |
| RE: getting rid of images | Chen 'FireFly' Avinadav | 01/22/02 13:49 |
| getting rid of images | Benjamin | 01/21/02 07:06 |
| help with multiple occurrence replacement | Frederick Kuhne | 01/20/02 00:15 |
| negating phrases | billy | 01/19/02 14:44 |
| ALL between " AND " | Torsten | 01/19/02 08:08 |
| RE: Text Inside HTML Tags | Sean S | 01/14/02 23:43 |
| Replace space for _ between < and > | Erik Neves | 01/13/02 13:18 |
| Matching phrases | Josi | 01/11/02 18:45 |
| Case-insensitive replacements | Ilych | 01/10/02 05:27 |
| hyphen trouble | Thanatos | 01/09/02 15:12 |
| NOT finding a whole word | Martin Sudmann | 01/09/02 06:36 |
| RE: Remove Tag Img | Luke Hartman | 01/07/02 16:59 |
| Remove Tag Img | Suwandi | 01/04/02 10:28 |
| RE: Help with match please... | Mamil | 01/04/02 06:25 |
| RE: What's wrong? | Mamil | 01/04/02 06:14 |
| RE: Matching quotes | Michael Harney | 01/03/02 14:32 |
| RE: parse error and more | Mamil | 01/03/02 07:30 |
| RE: Text Inside HTML Tags | steve tattersall | 01/01/02 06:55 |
| parse error and more | George Van Tuyl | 12/28/01 12:12 |
| string1PARSEMEstring2? | freezy | 12/22/01 21:03 |
| RE: Even more difficult | Wouter Alink | 12/20/01 07:55 |
| RE: HELP in getting strings within html tags | Aaron M. Reiff | 12/19/01 11:34 |
| RE: Stop this comments! | Soapy | 12/19/01 05:42 |
| RE: Text Inside HTML Tags | TrAsH | 12/17/01 13:17 |
| RE: Strip ALL that is between < and > | TrAsH | 12/17/01 13:12 |
| Help with regular expression | Jon | 12/17/01 06:18 |
| RE: RegExp for date | Nayt Grochowski | 12/10/01 17:07 |
| RegExp for date | Mike | 12/07/01 13:48 |
| RE: detecting repetitive characters (e.g. ffffff) | Dwivedi, Ajay kumar | 12/06/01 04:17 |
| RE: web site address | andrew | 12/04/01 17:16 |
| remove last number | rev aaron | 12/03/01 23:47 |
| How to strip all script tags and contents? | Rigel | 12/02/01 04:20 |
| Need help | srelysian | 11/30/01 10:29 |
| RE: Regex for image file name | Bruno | 11/28/01 10:12 |
| What's wrong? | Marc | 11/27/01 04:55 |
| RE: Strip ALL that is between < and > | Bruno | 11/26/01 03:33 |
| RE: Strip ALL that is between < and > | Bruno | 11/26/01 03:19 |
| RE: Strip ALL that is between < and > | LeChuck | 11/25/01 23:24 |
| web site address | Ian Torrilla | 11/25/01 13:53 |
| Gather all date in between colons | Dave Wilcock | 11/23/01 22:50 |
| How to remove all the '\' characters | paul | 11/23/01 17:10 |
| RE: strip everyting after last / | Devil | 11/15/01 21:25 |
| Strip ALL that is between < and > | Jaska | 11/15/01 17:44 |
| RE: Matching quotes | Mike de Clerck | 11/12/01 05:08 |
| RE: Remove return? | Toby | 11/11/01 08:44 |
| Help with match please... | Jon N. | 11/10/01 15:55 |
| Regex for image file name | Billy | 11/04/01 17:21 |
| regexp : need to match <a> tag | Jan Odvarka | 11/04/01 14:42 |
| help this | gopal | 10/30/01 02:07 |
| Problems with question mark | Shawna Gibbs | 10/26/01 16:03 |
| RE: help preg_place() | Ulrich Balling | 10/24/01 08:52 |
| RE: help preg_place() | Ulrich Balling | 10/24/01 08:37 |
| RE: Matching quotes | Ulrich Balling | 10/24/01 08:21 |
| Cool! | Tobias Beuving | 10/24/01 07:32 |
| RE: Remove return? | jason | 10/21/01 22:47 |
| Removing SELECTED Font Tags | Steve Cobb | 10/21/01 16:02 |
| Thank you: very clear | Patrick Lee | 10/16/01 02:46 |
| help preg_place() | tho | 10/15/01 21:00 |
| RegExp and Other languages | Daniel | 10/08/01 02:33 |
| RE: Obtaining a whole HTML section from a page?! | charley | 09/28/01 15:47 |
| Change Gender | Damon | 09/16/01 00:54 |
| RE: strip off alpha and leading 0's | Doug | 09/07/01 07:50 |
| strip off alpha and leading 0's | Doug | 09/06/01 09:28 |
| how2 extract this string? | polerio | 09/04/01 06:13 |
| RE: how 2 ereg_replace all matches? | binaural | 09/03/01 23:49 |
| Stop this comments! | Mike | 08/30/01 13:14 |
| Replace Characters! | May | 08/29/01 18:25 |
| keywords - syntax diagram | Aaron | 08/24/01 23:13 |
| query string | Paul | 08/23/01 12:36 |
| RE: IP ADDRESS | Dario Gomes | 08/23/01 07:31 |
| strip everyting after last / | Neil Kessler | 08/21/01 09:25 |
| RE: IP ADDRESS | yoPCix | 08/21/01 04:04 |
| RE: Obtaining a whole HTML section from a page?! | Alex | 08/16/01 04:16 |
| Double & Single Quotation Marks. | Jim Dam | 08/15/01 16:17 |
| Remove return? | Mikael Johansson | 08/15/01 09:43 |
| Validating IRC nicknames | Boris | 08/15/01 08:07 |
| Replacing a custom include tag with a file | Obi Nwosu | 08/14/01 22:40 |
| Returning everything between { and }? | Static | 08/10/01 17:49 |
| Highlighting Code Within Tags | Eric | 08/09/01 09:42 |
| RE: String between HTML tags | Bretticus | 08/08/01 01:51 |
| RE: Obtaining a whole HTML section from a page?! | Bretticus | 08/08/01 01:30 |
| RE: Obtaining a whole HTML section from a page?! | Goober Wilson | 07/31/01 18:05 |
| COLLATING .. problems PHP | Jim Levett | 07/27/01 02:34 |
| Text Inside HTML Tags | Ben Davis | 07/24/01 12:44 |
| National characters | W.Piskorz | 07/24/01 05:04 |
| how to use regex to insertlog apache to mysql | Arlyn | 07/21/01 02:52 |
| RE: hard one, please help | augustine | 07/12/01 03:21 |
| RE: ereg and special characters | clk55 | 07/12/01 02:32 |
| detecting repetitive characters (e.g. ffffff) | Jason | 07/08/01 09:45 |
| eregi_replace w/more then 1 string occurance | Jay | 07/07/01 14:16 |
| Truncate string | Martin Kramer | 07/06/01 03:54 |
| HELP in getting strings within html tags | janey | 07/02/01 19:56 |
| RE: hard one, please help | Michael Harney | 06/26/01 11:42 |
| RE: ereg and special characters | Chad Siefert | 06/20/01 09:53 |
| RE: IP ADDRESS | Thomas Kristensen | 06/20/01 05:02 |
| RE: hard one, please help | priti | 06/18/01 21:57 |
| pattern matching in a loop | Michael Richardson | 06/08/01 18:00 |
| Replace a html tag with variable | Scott | 06/08/01 03:25 |
| Obtaining a whole HTML section from a page?! | Kyle Anderson | 06/07/01 17:06 |
| RE: hard one, please help | Dravine | 06/07/01 10:55 |
| RE: hard one, please help | Jelle | 06/05/01 02:14 |
| RE: hard one, please help | Peter McNulty | 06/04/01 14:37 |
| RE: String between HTML tags | gon | 05/31/01 13:24 |
| RE: hard one, please help | gon | 05/31/01 13:17 |
| regular expressions anyone | gon | 05/31/01 12:59 |
| counting wourds in a text | Dentor Alex | 05/31/01 08:17 |
| RE: ereg_replace of @@@something@@@ | Kay | 05/28/01 14:06 |
| Replace on relative path | Uwe Thaden | 05/25/01 02:23 |
| RE: hard one, please help | Onno Schmidt | 05/23/01 14:32 |
| RE: hard one, please help | Onno Schmidt | 05/23/01 14:26 |
| IP ADDRESS | mauro | 05/22/01 02:53 |
| RE: hard one, please help | Michael Mann | 05/21/01 15:22 |
| RE: striping multiple occurences of any character | Lord Odin | 05/19/01 15:12 |
| RE: hard one, please help | Lord Odin | 05/19/01 14:55 |
| hard one, please help | Anderson | 05/18/01 06:44 |
| Showing sourcecode in my guestbook | Ate Bontjer | 05/16/01 21:30 |
| \] won't work use \x5d | cabo | 05/11/01 01:48 |
| RE: How to trim trailing characters | Michael Svazas | 05/03/01 21:06 |
| continuing the hearty moron tradition | Tao Chones | 04/26/01 02:58 |
| I'm a maroon | Tao Chones | 04/26/01 01:32 |
| Split CSV-File with INSIDE Delimiters ??? | frusti | 04/24/01 16:12 |
| RE: Removing Font Tags | the.strawman | 04/19/01 03:18 |
| How to trim trailing characters | Nozer Damania | 04/18/01 13:57 |
| changing ip address to subnet | shs | 04/18/01 09:33 |
| RE: Removing Font Tags | leith parkin | 04/17/01 22:43 |
| RE: String between HTML tags | Andy | 04/16/01 07:34 |
| ereg and special characters?? | yosimo | 04/13/01 12:42 |
| striping multiple occurences of any character | Damjan Cilensek | 04/13/01 11:06 |
| String between HTML tags | Chris Empson | 04/13/01 08:42 |
| ereg_replace of @@@something@@@ | chk | 04/11/01 09:05 |
| to strip head and foot from html file | lion | 03/27/01 12:17 |
| How remove everything between / Part of URL | Joao Correia | 03/22/01 16:38 |
| Matching IP Conection's not from loopback. | Pieter | 03/21/01 09:38 |
| a word between brackets | sebastien bernard | 03/21/01 06:55 |
| Large matching | noMaD | 03/20/01 18:10 |
| How to exclude the () from URL | Olga | 03/15/01 10:46 |
| Bracket expressions x losing power ? | Leander Berwers | 03/13/01 05:10 |
| RE: Removing Font Tags | Andrew | 03/12/01 18:01 |
| Removing Font Tags | mike | 03/09/01 16:18 |
| Mini Program | C.R. Opela | 03/06/01 00:47 |
| Taking a line after matching start | David | 03/03/01 23:37 |
| RE: how 2 ereg_replace all matches? | Dario F. Gomes | 02/25/01 11:26 |
| RE: Thank you!!! | Dario F. Gomes | 02/25/01 11:18 |
| Finding and replacing regular expressions | Schonarth | 02/25/01 11:16 |
| RE: Time | Dario F. Gomes | 02/25/01 11:11 |
| Highlighting string | Tarwin Stroh-Spijer | 02/25/01 01:21 |
| RE: how 2 ereg_replace all matches? | Jim Luttgens | 02/10/01 09:48 |
| RE: how 2 ereg_replace all matches? | clark | 02/05/01 15:17 |
| regular expression | Rafeeq C E | 02/02/01 07:46 |
| replacing urls - please help! | angel | 01/31/01 12:37 |
| Thank you!!! | Fotis | 01/30/01 09:38 |
| RE: The meaning of ?(?!http) | Carmen Vodislav | 01/17/01 11:29 |
| RE: The meaning of ?(?!http) | Rich Wall | 12/30/00 12:13 |
| The meaning of ?(?!http) | Phil Powell | 12/29/00 16:32 |
| Time | Tom Burriss | 12/28/00 17:22 |
| Removing Whitespaces | Brad B | 12/20/00 17:35 |
| how 2 ereg_replace all matches? | Lenny | 12/13/00 05:43 |
| RE: "^abc$" ? | Mark | 12/01/00 14:18 |
| RE: "^abc$" ? | Alex | 11/29/00 15:12 |
| RE: "^abc$" ? | Gildas Quiniou | 11/29/00 14:08 |
| "^abc$" ? | Mark | 11/28/00 16:42 |
| email validation | stephen | 11/22/00 08:14 |
| RE: ereg and special characters | Rafael Arancibia | 11/17/00 13:31 |
| eregi_replace | Rafael Arancibia | 11/17/00 13:17 |
| RE: Regular Expressions in Java | Heiko Schlichting | 10/29/00 07:55 |
| RE: Replace point "." --> wildcard (comma) "," | Dario F. Gomes | 10/28/00 16:34 |
| Regular Expressions in Java | Brian | 10/26/00 16:51 |
| Replace point "." --> wildcard (comma) "," | Marcello Junior | 10/23/00 13:48 |
| RE: Matching quotes | Adam Traver | 10/10/00 15:10 |
| RE: Matching quotes | Dario F. Gomes | 10/06/00 17:01 |
| RE: Removal of white spaces | Dario F. Gomes | 10/06/00 16:58 |
| RE: theoretical | Dario F. Gomes | 10/06/00 16:49 |
| Removal of white spaces | Michael Suess | 09/01/00 14:16 |
| Matching quotes | Adam Traver | 08/22/00 13:45 |
| theoretical | Nihhal Singh | 08/21/00 06:53 |
| RE: ereg and special characters | Dario F. Gomes | 08/14/00 11:48 |
| RE: ereg from file to function | Dario F. Gomes | 08/14/00 11:40 |
| ereg and special characters | Eric Jensen | 08/02/00 19:40 |
| ereg from file to function | Nor Aishah Hamid | 07/05/00 04:12 |
|
If you are looking for help, please post on the appropriate forum here. Your questions will be answered much more quickly.
|