Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

regular expression javascript

// Tests website Regular Expression against document.location (current page url)
if (/^https://example.com/$/.exec(document.location)){
	console.log("Look mam, I can regex!");
}
Source by eloquentjavascript.net #
 
PREVIOUS NEXT
Tagged: #regular #expression #javascript
ADD COMMENT
Topic
Name
7+3 =