Re: [PHP] Another q, this time eregi_replace
Sweet! Thanks ;) > > I'd like to strip out everything but the link name, so if someone inputs: > > > > http://www.php.net">PHP! > > > > It replaces it with: > > > > PHP! > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Another q, this time eregi_replace
check http://www.php.net/strip_tags > -Original Message- > From: James, Yz [mailto:[EMAIL PROTECTED]] > Sent: Sunday, January 14, 2001 11:05 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Another q, this time eregi_replace > I'd like to strip out everything but the link name, so if someone inputs: > > http://www.php.net">PHP! > > It replaces it with: > > PHP! > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Another q, this time eregi_replace
I'd like to be able to trim out some html tags, but only certain ones. I've used eregi_replace before and have some replacements running on some scripts... Some of the help pages and user notes on the quick reference functions have given me good examples of how to go about it. One thing I'm interested in, though, is the syntax that's used to determine what the link URL is and the link name... I think I saw it as: //0 for the URL and then //1 for the link. Like this (poor code, I dunno whether I've even got the right delimiters): eregi_replace("///1/\","//1",$string); I'd like to strip out everything but the link name, so if someone inputs: http://www.php.net">PHP! It replaces it with: PHP! Thanks, again. I seem to be asking a lot of questions today, hehe ;) James. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]