Hi I would like to perform this function using jquery or javascript. If the text enter by user exceed 100 chars, i would like the javascript to automatic put the open and closing bracket at the text.
For example:
If you purchased or upgraded RegexBuddy after 13 June 2007, you can download the latest version by typing in your email address and RegexBuddy user ID below. If you lost your user ID, type in your email address and leave the user ID field blank. You will then receive an email message with your user ID.
Using javascript:
[If you purchased or upgraded RegexBuddy after 13 June 2007, you can download the latest version by typing in your email address and] [RegexBuddy user ID below. If you lost your user ID, type in your email address and leave the user ID field blank. You will] [then receive an email message with your user ID.]
Can this be achieve? Any help are aprreciated.
Thank you.
Here’s a simple regex-based solution; tweak as you see fit: