How do I get the value between two strings, let say ?
example [url]http://www.php.net[/url], and get the result http://www.php.net using php preg reglar expression?
Thank you.
preg regular expression
Moderator: General Moderators
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
Typically it's similar to
Code: Select all
#left side(.*?)right side#