We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Javascript:
//(.?) --> It will stop until the and characters else . will become greedy and match all the content without stopping.
// /gs --> The dotAll flag(s) changes the behavior of the. (dot) metacharacter in the regular expression. by default . matches any charactes in the regex except newLine characters \n by adding /s dotAll flag . will consider the newline \n characters as well/gs.
Build a Stack Exchange Scraper
You are viewing a single comment's thread. Return to all comments →
Javascript: //(.?) --> It will stop until the and characters else . will become greedy and match all the content without stopping.
// /gs --> The dotAll flag(s) changes the behavior of the. (dot) metacharacter in the regular expression. by default . matches any charactes in the regex except newLine characters \n by adding /s dotAll flag . will consider the newline \n characters as well/gs.