This regex is used to find all valid urls in a list of urls.
/^(https?:\/\/)?([\da-z\.-]+)\.(c{2,6})([\/\w \.-]*)*\/?$/gim
<!DOCTYPE html> | |
<html> | |
<head> | |
<script> | |
function clickHandler(e) { | |
window.open('https://www.github.com/' + e.target.innerText, '_blank'); | |
} |
I hereby claim:
To claim this, I am signing this object:
<!DOCTYPE html> | |
<html> | |
<head> | |
<style> | |
body { | |
font-family: Arial, Helvetica, sans-serif; | |
font-size: 12pt; | |
max-width: 468pt; | |
padding: 72pt 72pt 72pt 72pt; |
[ | |
{ | |
"symbol":"$", | |
"name":"US Dollar", | |
"symbol_native":"$", | |
"decimal_digits":2, | |
"rounding":0, | |
"code":"USD", | |
"name_plural":"US dollars" | |
}, |