Help with Php and Regex



I'm just wondering what the best way is to extract and display a
number from a html file.

I tried the following piece of code, however it does not work.

ereg('\d\.\d', $content, $reg);
echo $reg[0];

.



Relevant Pages

  • PPT notes C#
    ... I am writing a piece of code to extract the powerpoint speaker notes ... and display them in a html file. ...
    (microsoft.public.office.developer.automation)
  • Re: Simple bash script that I cant figure out....
    ... The DISPLAY is in the form of: ... All I want to do is to extract the first number (the part between: ... echo $card ...
    (comp.os.linux.misc)
  • Re: template and echo
    ... echo; ... '123.tpl' is actually a html file with string '$var1' somewhere in the ... I want to display the HTML file but I want to replace '$var1' with ... a string when successful. ...
    (comp.lang.php)
  • Re: template and echo
    ... echo; ... '123.tpl' is actually a html file with string '$var1' somewhere in the ... I want to display the HTML file but I want to replace '$var1' with ...
    (comp.lang.php)
  • template and echo
    ... echo; ... '123.tpl' is actually a html file with string '$var1' somewhere in the ... I want to display the HTML file but I want to replace '$var1' with ...
    (comp.lang.php)