SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: preg_replace

  1. #1
    SitePoint Addict
    Join Date
    Jun 2008
    Posts
    205
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    preg_replace

    Hi,

    How to store only the string between Results and seconds in a variable and delete all the characters.
    Code:
    <p>&nbsp;Results <b>1</b> - <b>10</b> of about <b>87,800,000</b> for <b>aaa</b> (<b>0.08</b> seconds)&nbsp;</div><div id=res class=med><!--a--><h2 class=hd>Search Results</h2><div><ol><!--m--><link rel="prefetch" href="http://www.aaa.com/"><li class=g><h3 class=r>
    <a href="http://www.aaa.com/" class=l onmousedown="return clk(this.href,'','','res','1','')"><em>AAA</em> -

  2. #2
    Twitter: @AnthonySterling silver trophy AnthonySterling's Avatar
    Join Date
    Apr 2008
    Location
    North-East, UK.
    Posts
    6,111
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    @AnthonySterling: I'm a PHP developer, a consultant for oopnorth.com and the organiser of @phpne, a PHP User Group covering the North-East of England.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •