Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7069399
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T05:26:27+00:00 2026-05-28T05:26:27+00:00

I am trying to implement an open source string-to-link converter, but i have an

  • 0

I am trying to implement an open source string-to-link converter, but i have an error and I frankly have tried everything and do not know what is wrong. Here is the code:

$chatmessage = preg_replace('([[:space:]()[{}])(www.[-a-zA-Z0-9@:%_+.~#?&//=]+)',
'<a href="'.$chatmessage.'" target=_blank
style="color:#6B6B6B;">'.$chatmessage.'</a>', $chatmessage);

Here is the error that I get:

Warning: preg_replace() [function.preg-replace]: Unknown modifier ‘(‘ in /echogetconversation.php on line 38. line 38, is this:

'<a href="'.$chatmessage.'" target=_blank
style="color:#6B6B6B;">'.$chatmessage.'</a>', $chatmessage);

If anyone could assist me it would be greatly appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T05:26:28+00:00Added an answer on May 28, 2026 at 5:26 am

    Your problem (causing the error message) is you’ve set the delimiters to be (...) but then you are using ( and ) in your pattern. You could mess around with escaping, but choosing a different delimiter is simpler.

    EDIT: looking at it again, I think you intended the parentheses for capture, so your problem is you forgot the delimiters!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there any open-source software that is trying to implement and emulate the human
I'm trying to use the open source STHorizontalPicker library to implement a horizontal picker
I've been trying excessively hard to implement a good open id solution into asp.net
I'm trying to run the following code but unfortunately facing Error problems package jskypeexample;
I'm trying to port a C# thread pool into C++ but have encountered some
I'm trying to implement notification in Android. Now I have a problem, I don't
I know this has been asked before but I have looked at every answer
I am currently trying to implement my own webserver in C++ - not for
Goal I am trying to create a port (Macports) for an open source tool
I'm trying to implement a color picker in my Cocoa app. (Yes, I know

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.