SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

  1. #1
    exit();
    Join Date
    Jul 2000
    Posts
    759
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What is wrong with this line?
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">code/font><HR><pre>
    $content = ereg_replace( "\[L=([-_./a-zA-Z0-9!&%#?,'=:~]+)]". "([-_./a-zA-Z0-9 !&%#?,'=:~]+)\[EL]", "&lt;A HREF=\"\\1\"&gt;\\2&lt;/A&gt;");
    [/code]

    Thanks!

    ------------------
    ICQ Me! (73902680)

  2. #2
    SitePoint Enthusiast
    Join Date
    Jul 1999
    Posts
    62
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    ereg_replace requires 3 vars, you have 2:

    ereg_replace(string pattern, string replacement, string string);


    (haven't checked the regular expression)



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
  •