IT Cheatsheet

The scripts and code snippets I copy and paste most often

First sort so duplicates are next to each other

Option 1

Replace:

^(.*)(\n\1)+$

with

$1

Option 2

Replace:

^((^[^\S$]?(?=\S)(?:.)+$)[\S\s]*?)^\2$(?:\n)?

with

$1

Option 1

((?!STRING).)*$

Option 2

^(?:(?!STRING).)*$

[가-힣]

Also TagName, ID, …

a=document.getElementsByClassName('CLASS');b=[];Array.from(a).forEach((e)=>{b.push(e.innerText)});c=b.toString();copy(c);