Finvi interview question

When would you use a NoSql database vs a SQL one? How would you strip non-digits from string using a regular expression?