Nevertheless, a regex might be later used to filter only the paragraphs starting with a number and a dot. Proof of concept using XML::XSH2:
open :r :F html http://motivationgrid.com/50-inspirational-quotes-to-l +ive-by/ ; for //p[xsh:match(., '^[0-9]+\.')] echo (.) | shuf | head -n1 ;
($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,
In reply to Re: regex to get random quote
by choroba
in thread regex to get random quote
by Aldebaran
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |