Chaine de caractères

In this example below you will see how to do a Chaine de caractères with some HTML / CSS and Javascript

This awesome code was written by Deejayfool, you can see more from this user in the personal repository.
You can find the original code on
Copyright Deejayfool ©


  • HTML
  • JavaScript
<!DOCTYPE html>
<html lang="en" >

  <meta charset="UTF-8">
  <title>Chaine de caractères</title>


  <input type="text" id="input" />

<span id="test"></span>
  <script src=''></script>


    <script  src="js/index.js"></script>



/*Downloaded from */
var pattern = /([a-zA-Z])\1{3}/;

$('#input').on('change keyup paste', function(){
  var value = $(this).val();