|
RE: Noobs Guide to Regex
|
|
06-27-2004, 04:48 AM
Post: #1
|
|||
|
|||
|
RE: Noobs Guide to Regex
Thinking outside of the box (
Post your tips ... |
|||
|
12-24-2009, 10:15 AM
Post: #2
|
|||
|
|||
|
RE: Noobs Guide to Regex
Regex uses pattern recognition applied to a string to output matches for us to use in our code. This can be a one-time match or many to produce an array of results.
Internet Marketing Software |
|||
|
01-30-2010, 08:53 PM
Post: #3
|
|||
|
|||
|
RE: Noobs Guide to Regex
The cool thing about regex is that you can extract data from text content that matches a pattern i.e. not an exact match. So this is great for data mining. For example I have a post here about how to extract lottery numbers from the results page. To do this you have to use regex since the numbers will be different in each draw, but the pattern of the web page HTML will remain the same.
|
|||
|
02-05-2010, 12:19 AM
Post: #4
|
|||
|
|||
|
RE: Noobs Guide to Regex
I was looking into ways to rewrite subdirectory to subdomain with .htaccess. Not may people will want to do this but I was looking for a way to do it anyway.
Here is the .htaccess code that I came up with: Code: RewriteEngine OnSo this causes the root domain requests that contain /sub/ to access index.php with the query string of r=YourSubdirectory So in your index.php code you can use $_GET to get the referring site ID. |
|||
|
« Next Oldest | Next Newest »
|

Search
Member List
Calendar
Help





