Date: 17/09/2026 22:19:34
From: SCIENCE
ID: 2430606
Subject: re: Programming languages

The Rev Dodgson said:

SCIENCE said:

a HTML contained JS powered utility for posting code in a readable format

http://void.byethost10.com/sssf/ForUmCodeEnt.html

From the ever increasing volume of Quora crap:

86 replies, and not one of them thought of

CRINGE.

anyway we’re sure yousall can easily vibecode it but we made one so any of yous with regex knowhow can easily find what you need in future

<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Choose Words</title>
</head>
<body>
<h1>Choose Words</h1>
<div><textarea id="textin" style="width: 100%; height: 30vh;">paste newline-delimited word list here</textarea></div>
<div><input id="regexp" style="width: 100%;" value="regular expression to search for"></input></div>
<div><textarea id="textout" style="width: 100%; height: 30vh;"></textarea></div>

<script type="application/javascript" ><!--
"use strict";
window.setTimeout(function () {

 (function () {
  var find;
  var history;

  find = function () {
   var i, r, o;
   r = document.getElementById("regexp").value;
   if (r != history) {
    history = r;
    i = "\n" + document.getElementById("textin").value + "\n";
    r = new RegExp("\n" + r + "\n", "gi");
    o = i.replace(/\n/g, "\n\n").match(r);
    if (o) {
     o = o.map((t)=>(t.trim()));
    } else {
     o = "(no match)";
    }
    document.getElementById("textout").value = o.toString(10);
   }
  };

  document.getElementById("textout").addEventListener("focus", find, false);
  document.getElementById("textin").focus();
 })();

}, 10);
//--></script>
</body>
</html>
Reply Quote View full thread