Destramic Posted December 1, 2010 Share Posted December 1, 2010 hey guys im trying to find a string inside a string which could be made up of different things eg... {$test}, {$test1}, {$test2} etc (but the varable inside could be called anything hence maybe using regex im not sure?) is this possible?...i hope you guys understand....thanks Link to comment https://forums.phpfreaks.com/topic/220296-searching-for-a-string-inside-a-string-using-regex/ Share on other sites More sharing options...
JakeTheSnake3.0 Posted December 1, 2010 Share Posted December 1, 2010 {(\$.*?)} ??? Use at your own risk as I have no idea how far reaching this will go. Use a program like "The Regex Coach" to test your expressions. Link to comment https://forums.phpfreaks.com/topic/220296-searching-for-a-string-inside-a-string-using-regex/#findComment-1141622 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.