Regular expression help

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
Hi everyone

I am using a ereg_replace to strip all but certain allowed characters
from a string:
$string = ereg_replace("([^ 0-9A-Za-zŠŒŽšœž

I would like to extend this to allow HTML character references of the
form "&#number;" where number is the three or four digit code number
of the character.   Examples would be "ä" and "ẽ".

I am sorry but regular expressions hurt my brain!

Thankyou in advance

Re: Regular expression help

Kimmo Laine wrote:
Quoted text here. Click to load it

Unless next_page.php generates PHP, the script with this include will
only get HTML.

Quoted text here. Click to load it


    if (isset($_GET['foo'])) {
      echo '<?php echo $_GET[\'foo\']; ?>';
    } else {
      echo '<?php echo \'Not available\'; ?>';

File not found: (R)esume, (R)etry, (R)erun, (R)eturn, (R)eboot

Site Timeline