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 72883
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T20:06:52+00:00 2026-05-10T20:06:52+00:00

I will show the problem with a example. There is some text in the

  • 0

I will show the problem with a example.

There is some text in the textbox such here:

Hi! this is a example [lnk]text[/lnk]

When i push the submit button and publish this text, the word in the [lnk] and [/lnk] tags must be a link like this http://www.mysite.com?link=text.

How do I make it easily with javascript or jquery?

Note: I’m not so good about javascript.

  • 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. 2026-05-10T20:06:53+00:00Added an answer on May 10, 2026 at 8:06 pm

    This will do the javascript for you – not sure if you need to do anything special for asp.net

    <form onsubmit='return doLinks(this.elements['links']);'> <textarea name='links' rows='20' cols='80'></textarea> <input type='submit'> </form>  <script type='text/javascript'>  function doLinks(elm) {     var matches = elm.value.match(/\[link\](.*?)\[\/link\]/gi);     for (var i = 0; i < matches.length; i++)     {         var url = 'http://www.mysite.com/?link=' + encodeURIComponent(matches[i].substring(6, matches[i].length - 7));         elm.value = elm.value.replace(matches[i], url);     }      return true; }  </script> 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I will show an example to explain my problem. VARIABLE='some string' I want to
from this code will show in original color how can i change it to
Occasionally a TextView with dynamic content will show a price. For example, as part
I have an app that will show some images using UIImageView, now I want
Here is the problem: We have some pdf files with youtube videos embedded in
i know this sounds simple for some people out there. i also tried this
I have got some markup that looks like this: <div class=button> <span class=image></span> <input
I will show a UITextView with all messages from the NSLog in my debug
The HTML below will show a page with 2 buttons. One will open a
I need to generate report that will show number of new / changed rows

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.