Jump to content

[SOLVED] preg replace, deleting everything after the # character


ted_chou12

Recommended Posts

what about

<?php
$STR = "The Fox Jumped over #the lazy dog";
$FIND = "[#].*";
$FOUND = ereg_replace($FIND, "", $STR );
?>

 

i am not the best person to ask..

 

But i am getting a book on RegExp :P something to help me sleep  :P

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.