|   |   |   | ||||
| Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. | 
|    | 
| 
 | |||||||
| Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. | 
|  | Thread Tools | 
|  04-25-2011, 08:42 AM | #2 | 
| Monger Cash Industry Role:  Join Date: Jul 2010 
					Posts: 2,773
				 | What language? | 
|   |           | 
|  04-25-2011, 09:11 AM | #4 | 
| there's no $$$ in porn Industry Role:  Join Date: Jul 2005 Location: icq: 195./568.-230 (btw: not getting offline msgs) 
					Posts: 33,063
				 | grabbing url and anchor text the complicated way: @<[\s]*a[\s]*[^>]*?href[\s]*=[\"\’\s]*(.*?)[\"\’\s]*[^>]*?> (.*?)<[\s]*/[\s]*a[\s]*>@is | 
|   |           | 
|  04-25-2011, 09:46 AM | #5 | 
| So Fucking Banned Industry Role:  Join Date: Apr 2011 
					Posts: 309
				 | Code: ^(?:(?:(?:0?[13578]|1[02])(\/|-|\.)31)\1|(?:(?:0?[13-9]|1[0-2])(\/|-|\.)(?:29|30)\2))(?:(?:1[6-9]|[2-9]\d)?\d{2})$|^(?:0?2(\/|-|\.)29\3(?:(?:(?:1[6-9]|[2-9]\d)?(?:0[48]|[2468][048]|[13579][26])|(?:(?:16|[2468][048]|[3579][26])00))))$|^(?:(?:0?[1-9])|(?:1[0-2]))(\/|-|\.)(?:0?[1-9]|1\d|2[0-8])\4(?:(?:1[6-9]|[2-9]\d)?\d{2})$ | 
|   |           | 
|  04-25-2011, 09:58 AM | #6 | 
| Too lazy to set a custom title Industry Role:  Join Date: Aug 2002 
					Posts: 55,372
				 | Code: ^(?=\d)(?:(?:(?:(?:(?:0?[13578]|1[02])(\/|-|\.)31)\1|(?:(?:0?[1,3-9]|1[0-2])(\/|-|\.)(?:29|30)\2))(?:(?:1[6-9]|[2-9]\d)?\d{2})|(?:0?2(\/|-|\.)29\3(?:(?:(?:1[6-9]|[2-9]\d)?(?:0[48]|[2468][048]|[13579][26])|(?:(?:16|[2468][048]|[3579][26])00))))|(?:(?:0?[1-9])|(?:1[0-2]))(\/|-|\.)(?:0?[1-9]|1\d|2[0-8])\4(?:(?:1[6-9]|[2-9]\d)?\d{2}))($|\ (?=\d)))?(((0?[1-9]|1[012])(:[0-5]\d){0,2}(\ [AP]M))|([01]\d|2[0-3])(:[0-5]\d){1,2})?$Matches 12/25/2003 | 08:03:31 | 02/29/2004 12 AM Non-Matches 02/29/2003 1:34 PM | 13:23 PM | 24:00:00 
				__________________ Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.  WP Stuff | 
|   |           | 
|  04-25-2011, 11:05 AM | #7 | 
| It's 42 Industry Role:  Join Date: Jun 2010 Location: Global 
					Posts: 18,083
				 | Friend of mine did this regex: Code: $xml =~ s#<(performerinfo)>(.*?)</\1>
         #{
             my ($tmp, $data) = ($2);
             $tmp =~ s|<(\w+)><!\[CDATA\[(.*?)\]\]></\1>
                      |{$data->{$1}=$2}|sgex;
            push(@models, $data)
         }#sgex; | 
|   |           | 
|  04-25-2011, 03:58 PM | #9 | |
| Making PHP work Industry Role:  Join Date: Nov 2002 Location: 🌎🌅🌈🌇 
					Posts: 20,646
				 | Quote: 
  | |
|   |           | 
|  04-25-2011, 05:47 PM | #10 | 
| It's 42 Industry Role:  Join Date: Jun 2010 Location: Global 
					Posts: 18,083
				 | |
|   |           | 
|  04-25-2011, 06:24 PM | #11 | 
| Damn Right I Kiss Ass! Industry Role:  Join Date: Dec 2003 Location: Cowtown, USA 
					Posts: 32,422
				 | how about stuff that just gets used daily? Code: if (!$page = preg_replace("#<script(.+?) src=\"\/#is", "<script$1 src=\"$baseURL", $page))
	{ $page = preg_replace("#<script(.+?) src=\"#is", "<script$1 src=\"$workingUrl", $page); } | 
|   |           | 
|  04-25-2011, 06:32 PM | #12 | 
| Confirmed User Join Date: Apr 2002 Location: State Of Bliss 
					Posts: 2,438
				 | Great now I know who to contact next time I need help.   | 
|   |           | 
|  04-25-2011, 06:47 PM | #13 | 
| Confirmed User Join Date: Feb 2002 Location: Santa Monica, CA 
					Posts: 31
				 | 
				
				Email regex
			 Too big to post here, but its the last page of Mastering Regular Expressions by O'Reilly.    Its 6,598 bytes long and matches email addresses. | 
|   |           | 
|  04-25-2011, 09:27 PM | #14 | 
| It's 42 Industry Role:  Join Date: Jun 2010 Location: Global 
					Posts: 18,083
				 | This is an email regex i did years ago: Code: &ReadParse(*input);
$user_email = $input{'01)required-user_email'};
if ($user_email =~ /(\w{1}[\w-.]*)\@([\w-.]+)/) {
    $user_email = "$1\@$2";
    if( $2 =~ /(domain\.com|domain\.com)/i){
	    &disallowed_domain;
	    exit;
}    
} else {
    warn ("TAINTED DATA SENT BY $ENV{'REMOTE_ADDR'}: $user_email: $!");
    $user_email = ""; # successful match did not occur
    &illegal;
    exit;
}
 
if ($user_email =~m:^(.*)\@\@(.*)\.(.*)$:) {
&BadFormat;
exit;
}
if ($user_email =~m:^(www\.):) {
&BadFormat2;
exit;
}
if ($user_email =~m:^(.*)\@(.*)\.(.*)$:) { ...} | 
|   |           | 
|  04-26-2011, 06:09 AM | #15 | 
| Too lazy to set a custom title Industry Role:  Join Date: Aug 2002 
					Posts: 55,372
				 | Code: <?php
function validate_email ($email) {
  $regex='/^[\w!#$%&\'*+\/=?^`{|}~.-]+@(?:[a-z\d][a-z\d-]*(?:\.[a-z\d][a-z\d-]*)?)+\.(?:[a-z]+)$/iD';
  
  if (preg_match($regex, $email, $m)) { return $m[0]; }
  return false;
}
var_dump(validate_email('[email protected]'));
?>
				__________________ Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.  WP Stuff | 
|   |           | 
|  04-26-2011, 07:11 AM | #16 | 
| there's no $$$ in porn Industry Role:  Join Date: Jul 2005 Location: icq: 195./568.-230 (btw: not getting offline msgs) 
					Posts: 33,063
				 | Code: function validEmail($email)
{
   $isValid = true;
   $atIndex = strrpos($email, "@");
   if (is_bool($atIndex) && !$atIndex)
   {
      $isValid = false;
   }
   else
   {
      $domain = substr($email, $atIndex+1);
      $local = substr($email, 0, $atIndex);
      $localLen = strlen($local);
      $domainLen = strlen($domain);
      if ($localLen < 1 || $localLen > 64)
      {
         // local part length exceeded
         $isValid = false;
      }
      else if ($domainLen < 1 || $domainLen > 255)
      {
         // domain part length exceeded
         $isValid = false;
      }
      else if ($local[0] == '.' || $local[$localLen-1] == '.')
      {
         // local part starts or ends with '.'
         $isValid = false;
      }
      else if (preg_match('/\\.\\./', $local))
      {
         // local part has two consecutive dots
         $isValid = false;
      }
      else if (!preg_match('/^[A-Za-z0-9\\-\\.]+$/', $domain))
      {
         // character not valid in domain part
         $isValid = false;
      }
      else if (preg_match('/\\.\\./', $domain))
      {
         // domain part has two consecutive dots
         $isValid = false;
      }
      else if (preg_match('/\!/', $email))
      {
         // 
         $isValid = false;
      }
      else if (preg_match('/\$/', $email))
      {
         // 
         $isValid = false;
      }
      else if (preg_match('/\|/', $email))
      {
         // 
         $isValid = false;
      }
      else if
(!preg_match('/^(\\\\.|[A-Za-z0-9!#%&`_=\\/$\'*+?^{}|~.-])+$/',
                 str_replace("\\\\","",$local)))
      {
         // character not valid in local part unless 
         // local part is quoted
         if (!preg_match('/^"(\\\\"|[^"])+"$/',
             str_replace("\\\\","",$local)))
         {
            $isValid = false;
         }
      }
   }
   return $isValid;
} | 
|   |           | 
|  02-26-2012, 05:58 PM | #17 | 
| Too lazy to set a custom title Industry Role:  Join Date: Aug 2002 
					Posts: 55,372
				 | Code: (?:http://(?:(?:(?:(?:(?:[a-zA-Z\d](?:(?:[a-zA-Z\d]|-)*[a-zA-Z\d])?)\.
)*(?:[a-zA-Z](?:(?:[a-zA-Z\d]|-)*[a-zA-Z\d])?))|(?:(?:\d+)(?:\.(?:\d+)
){3}))(?::(?:\d+))?)(?:/(?:(?:(?:(?:[a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/])+))?(?:(?:;[Uu][Ii][Dd][Vv][Aa][Ll][Ii][Dd][Ii][Tt][Yy]=(?:[1-
9]\d*)))?)|(?:(?:(?:(?:[a-zA-Z\d$\-_.+!*'(),]|(?:%[a-fA-F\d]{2}))|[&=~
:@/])+)(?:(?:;[Uu][Ii][Dd][Vv][Aa][Ll][Ii][Dd][Ii][Tt][Yy]=(?:[1-9]\d*
)))?(?:/;[Uu][Ii][Dd]=(?:[1-9]\d*))(?:(?:/;[Ss][Ee][Cc][Tt][Ii][Oo][Nn
]=(?:(?:(?:[a-zA-Z\d$\-_.+!*'(),]|(?:%[a-fA-F\d]{2}))|[&=~:@/])+)))?))
)?)|(?:nfs:(?:(?://(?:(?:(?:(?:(?:[a-zA-Z\d](?:(?:[a-zA-Z\d]|-)*[a-zA-
Z\d])?)\.)*(?:[a-zA-Z](?:(?:[a-zA-Z\d]|-)*[a-zA-Z\d])?))|(?:(?:\d+)(?:
\.(?:\d+)){3}))(?::(?:\d+))?)(?:(?:/(?:(?:(?:(?:(?:[a-zA-Z\d\$\-_.!~*'
(),])|(?:%[a-fA-F\d]{2})|[:@&=+])*)(?:/(?:(?:(?:[a-zA-Z\d\$\-_.!~*'(),
])|(?:%[a-fA-F\d]{2})|[:@&=+])*))*)?)))?)|(?:/(?:(?:(?:(?:(?:[a-zA-Z\d
\$\-_.!~*'(),])|(?:%[a-fA-F\d]{2})|[:@&=+])*)(?:/(?:(?:(?:[a-zA-Z\d\$\
-_.!~*'(),])|(?:%[a-fA-F\d]{2})|[:@&=+])*))*)?))|(?:(?:(?:(?:(?:[a-zA-
Z\d\$\-_.!~*'(),])|(?:%[a-fA-F\d]{2})|[:@&=+])*)(?:/(?:(?:(?:[a-zA-Z\d
\$\-_.!~*'(),])|(?:%[a-fA-F\d]{2})|[:@&=+])*))*)?)))  
				__________________ Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.  WP Stuff | 
|   |           | 
|  02-26-2012, 06:06 PM | #18 | 
| RIP Dodger. BEST.CAT.EVER Industry Role:  Join Date: Dec 2002 Location: NYC Area 
					Posts: 18,450
				 | regex has often been the bane of my existence. 
				__________________ -uno icq: 111-914 CrazyBabe.com - porn art MojoHost - For all your hosting needs, present and future. Tell them I sent ya! | 
|   |           | 
|  02-26-2012, 06:13 PM | #19 | 
| Confirmed User Join Date: Oct 2002 
					Posts: 3,745
				 | I wish I were on my computer so I could pull up some doozies.  This one took three of us weeks to refine in 1997. It seems so simple now: ^http(s)?://([a-z0-9]+\.)*mysite.com(:[0-9]+)?(/|$) | 
|   |           | 
|  02-26-2012, 06:57 PM | #20 | 
| Confirmed User Join Date: Jan 2003 Location: LA 
					Posts: 502
				 | Oh come on amateurs, someone post an email validator. | 
|   |           | 
|  02-26-2012, 08:27 PM | #21 | |
| marketer. Industry Role:  Join Date: Aug 2006 Location: bcn 
					Posts: 2,280
				 | saw this one ages ago for validating email addresses. no idea if it works... Quote: 
 | |
|   |           | 
|  02-26-2012, 11:25 PM | #22 | 
| Confirmed User Industry Role:  Join Date: Mar 2010 Location: http://HardLinks.ORG http://HardLinks.ORG http://HardLinks.ORG http://HardLinks.ORG http://HardLinks.ORG http://HardLinks.ORG 
					Posts: 873
				 | wow, look very complicated! 
				__________________  Hundreds of One Way Hardlinks from Adult Sites Located All Over the World Testimonials and feedback from our clients Hardlinks.org - monthly payment options. We accept pp and paxum ~Ray, sales: webmaster[AT]advertisingsex.com ICQ: 94994627 Tech: jacob.uub[AT]gmail.com ICQ: 58581992 | 
| ![Jacob[Soft] is offline](skins/gfy/images/statusicon/user_offline.gif)  |           | 
|  02-26-2012, 11:35 PM | #23 | 
| Too lazy to set a custom title Industry Role:  Join Date: Jun 2005 Location: 127.0.0.1 
					Posts: 27,047
				 | this thread makes me dizzy.... 
				__________________ Make Money | 
|   |           | 
|  02-26-2012, 11:35 PM | #24 | 
| Damn Right I Kiss Ass! Industry Role:  Join Date: Dec 2003 Location: Cowtown, USA 
					Posts: 32,422
				 | another year of regex | 
|   |           | 
|  02-27-2012, 12:25 AM | #25 | 
| Confirmed User Join Date: Jan 2005 Location: Stockton 
					Posts: 4,365
				 | I fucking hate regex...The most complicated thing I have ever been able to do is replace stuff in a series of numbers. "[^"]*" something like changing everything to <p> <div id="1"></div> <div id="2"></div> <div id="3"></div> <div id="4"></div> Find <div id="[^"]*"></div> and replace with <p id="[^"]*"></p> results <p id="1"></p> <p id="2"></p> <p id="3"></p> <p id="4"></p> 
				__________________ ICQ:268731675 | 
|   |           |