I would like to paste text into a <textarea>, run that pasted text through a regex and then deliver that regex-processed text onto the _same_ browser page.
This is what I have so far:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<TITLE>Useful JavaScript - JavaScript Forms</TITLE>
</HEAD>
<SCRIPT language="JavaScript">
<!-- Hide from older browsers
function TextBlob(textAreaData) {
[login to view URL] = textAreaData;
}
function getTextBlob(form) {
var newTextBlob = new TextBlob([login to view URL]);
[login to view URL] = [login to view URL];
// var varName = new RegExp("newTextBlob", ["g"|"i"|"gi"]);
// [login to view URL] = newName;
// varName = [login to view URL](TextBlob.length-4);
// [login to view URL] = 4;
// birthday = [login to view URL]([login to view URL] - 4);
}
// Stop hiding -->
function change(thistag) { styleObj = [login to view URL](thistag).style; styleObj.color="red"; }
</SCRIPT>
<BODY bgcolor="white" text="black">
<FORM name = "myForm">
<INPUT type = "button" value="Duplicate String" onClick="getTextBlob([login to view URL]);">
<TEXTAREA name="textinput" rows=20 cols=20></TEXTAREA>
<TEXTAREA name="textoutput" rows=20 cols=20></TEXTAREA>
<TEXTAREA name="regex" rows=20 cols=20></TEXTAREA>
</FORM>
<h2 id="roll" class="rollover" onMouseOver="change('roll');" onMouseOut="back('roll');">Rollover</h2>
</BODY>
</HTML>
## Deliverables
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables):
a) For web sites or other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment.
b) For all others including desktop software or software the buyer intends to distribute: A software installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request.
3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement).
## Platform
JavaScript