Matrixkid Posted February 3, 2008 Share Posted February 3, 2008 Ive been trying for sometime now to replace everything between the following: nbsp; Sport nbsp; Team I need everything replaced between those two. I have tried: ([nbsp; Sport](.*?)[nbsp; Team]); (nbsp; Sport.*?.nbsp; Team); those were the main two, just different variants of each. Anything would help at this points. Thanks in advance! Cheers Link to comment https://forums.phpfreaks.com/topic/89164-solved-preg-replace/ Share on other sites More sharing options...
Matrixkid Posted February 3, 2008 Author Share Posted February 3, 2008 If it helps, it could also be between: Sport: Team: ex: array ('[sport:.*?.Team:]') array ('[sport:].*?.[Team:]') Thanks Link to comment https://forums.phpfreaks.com/topic/89164-solved-preg-replace/#findComment-456859 Share on other sites More sharing options...
Matrixkid Posted February 4, 2008 Author Share Posted February 4, 2008 /Sport:([^*]*)Team:/i solved. took me tons of time. I suggest to anyone looking for a quick way of figuring this stuff out to use Expresso. Great tool. heres a preview shot of my problem in expresso: Link to comment https://forums.phpfreaks.com/topic/89164-solved-preg-replace/#findComment-457321 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.