download and install Solr from http://lucene.apache.org/solr/.
you can access Solr admin from your browser: http://localhost:8983/solr/
use the port number used in installation.
| :'SET PASSWORD | |
| sudo -i -u postgres | |
| psql | |
| \password postgres | |
| ' | |
| # RHEL / CentOS 8 | |
| # https://www.postgresql.org/download/linux/redhat/ | |
| # https://www.postgresql.org/docs/current/runtime.html | |
| dnf list installed |grep postgresql |
download and install Solr from http://lucene.apache.org/solr/.
you can access Solr admin from your browser: http://localhost:8983/solr/
use the port number used in installation.
| const URL = 'https://letsrevolutionizetesting.com/challenge.json'; | |
| function makeCall(url) { | |
| return fetch(url).then(response => response.json()); | |
| } | |
| function startChallenge(url) { | |
| return makeCall(url) | |
| .then(response => { | |
| const {follow} = response; |
| let regex; | |
| /* matching a specific string */ | |
| regex = /hello/; // looks for the string between the forward slashes (case-sensitive)... matches "hello", "hello123", "123hello123", "123hello"; doesn't match for "hell0", "Hello" | |
| regex = /hello/i; // looks for the string between the forward slashes (case-insensitive)... matches "hello", "HelLo", "123HelLO" | |
| regex = /hello/g; // looks for multiple occurrences of string between the forward slashes... | |
| /* wildcards */ | |
| regex = /h.llo/; // the "." matches any one character other than a new line character... matches "hello", "hallo" but not "h\nllo" | |
| regex = /h.*llo/; // the "*" matches any character(s) zero or more times... matches "hello", "heeeeeello", "hllo", "hwarwareallo" |