| 
		
			
			
				
			
			
				 
			
			
				
			
		 | 
		
			
			
				 
			
				
			
		 | 
	||||
| 
				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 | 
| 
			
			 | 
		#1 | 
| 
			
			
			
			 Confirmed User 
			
		
			
				
			
			
			Industry Role:  
				Join Date: Jan 2004 
				Location: oddfuturewolfgangkillthemall!!!!!!! 
				
				
					Posts: 5,656
				 
				
				
				
				 | 
	
	
	
	
		
			
			 
				
				Regex perts..
			 
			Can anyone help with this simple regex really quick, the shit always mind fucks me. 
		
	
		
		
		
		
			
		
		
		
		
	
	I need to split this: ASDFjpgQWERjpg into: [0] => ASDFjpg [1] => QWERjpg Can split it with 'jpg' but don't know how to keep the jpg on the end of them. Please save me from this hour long headache ![]()  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#2 | 
| 
			
			
			
			 Totally Borked 
			
		
			
				
			
			
			Industry Role:  
				Join Date: Feb 2005 
				
				
				
					Posts: 6,284
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 /^([A-Z]+jpg)([A-Z]+jpg)$/ 
		
	
		
		
		
		
			or if you're wanting php preg_match: preg_match("/^([A-Z]+jpg)([A-Z]+jpg)$/", $matches); var_dump($matches); 
				__________________ 
		
		
		
		
	
	![]() For coding work - hit me up on andy // borkedcoder // com (consider figuring out the email as test #1) All models are wrong, but some are useful. George E.P. Box. p202  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#3 | 
| 
			
			
			
			 Totally Borked 
			
		
			
				
			
			
			Industry Role:  
				Join Date: Feb 2005 
				
				
				
					Posts: 6,284
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 or if the pattern occurs ad nauseum 
		
	
		
		
		
		
			preg_match_all("/([A-Z]+jpg)/", $matches); var_dump($matches); 
				__________________ 
		
		
		
		
	
	![]() For coding work - hit me up on andy // borkedcoder // com (consider figuring out the email as test #1) All models are wrong, but some are useful. George E.P. Box. p202  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#4 | 
| 
			
			
			
			 Confirmed User 
			
		
			
				
			
			
			Industry Role:  
				Join Date: Jan 2004 
				Location: oddfuturewolfgangkillthemall!!!!!!! 
				
				
					Posts: 5,656
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Should have mentioned there might be a long list of them and not just 2. 
		
	
		
		
		
		
			
		
		
		
		
		
			
		
		
	
	This is the best I could do and it works but it's messy and returns too much other shit preg_match_all("/([A-Za-z0-9]{4}(jpg|jpeg|gif|png))/","ASDFjpgBLAHjpgQWERjpg",$matches); Edit: ok this is better but still returning a bunch of "jpg" on the end. preg_match_all("/[A-Za-z0-9]{4}(jpg|jpeg|gif|png)/","ASDFjpgBLAHjpgQWERjpg",$matches);  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#5 | 
| 
			
			
			
			 Confirmed User 
			
		
			
			
			Join Date: Jun 2003 
				
				
				
					Posts: 917
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 ([A-Za-z0-9]{4}(?:jpg|jpeg|gif|png)) to remove that jpg, etc. from results 
		
	
		
		
		
		
			
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#6 | 
| 
			
			
			
			 Confirmed User 
			
		
			
				
			
			
			Industry Role:  
				Join Date: Jan 2004 
				Location: oddfuturewolfgangkillthemall!!!!!!! 
				
				
					Posts: 5,656
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 preg_match_all("/[A-Za-z0-9]{4}(?:jpg|jpeg|gif|png)/","ASDFjpgBLAHjpgQWERjpg",$matches); 
		
	
		
		
		
		
			
		
		
		
		
	
	perfection! Thanks dudes!!  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#7 | |
| 
			
			
			
			 Totally Borked 
			
		
			
				
			
			
			Industry Role:  
				Join Date: Feb 2005 
				
				
				
					Posts: 6,284
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Quote: 
	
 Code: 
	preg_match_all("/([A-Za-z0-9]{4}(?:jpg|jpeg|gif|png))/","ASDFjpgBLAHjpgQWERjpg",$matches);
				__________________ 
		
		
		
		
	
	![]() For coding work - hit me up on andy // borkedcoder // com (consider figuring out the email as test #1) All models are wrong, but some are useful. George E.P. Box. p202  | 
|
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#8 | 
| 
			
			
			
			 Damn Right I Kiss Ass! 
			
		
			
			
			Industry Role:  
				Join Date: Dec 2003 
				Location: Cowtown, USA 
				
				
					Posts: 32,422
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Too late to make an entry for the contest? 
		
	
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#9 | 
| 
			
			
			
			 Confirmed User 
			
		
			
				
			
			
			Industry Role:  
				Join Date: Jan 2004 
				Location: oddfuturewolfgangkillthemall!!!!!!! 
				
				
					Posts: 5,656
				 
				
				
				
				 | 
	
	|
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#10 | 
| 
			
			
			
			 It's 42 
			
		
			
			
			Industry Role:  
				Join Date: Jun 2010 
				Location: Global 
				
				
					Posts: 18,083
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 s/jpg/\.jpg/; 
		
	
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#11 | 
| 
			
			
			
			 Too lazy to set a custom title 
			
		
			
				
			
			
			Industry Role:  
				Join Date: Sep 2005 
				Location: Springfield 
				
				
					Posts: 13,826
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 if can you use php 
		
	
		
		
		
		
			Code: 
	$x = ""; // that string with all that junk
$a = array(); // resulting array
$x str_replace('jpg', 'jpg|',$x);
$a = explode('|', $x)
var_dump($a);
				__________________ 
		
		
		
		
	
	Make a bank with Chaturbate - the best selling webcam program        Ads that can't be block with AdBlockers !!! /// Best paying popup program (Bitcoin payouts) !!! PHP, MySql, Smarty, CodeIgniter, Laravel, WordPress, NATS... fixing stuff, server migrations & optimizations... My ICQ: 27429884 | Email:  
			 | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 |