How would you develop a JavaScript function for text parsing to extract certain data from a string? Include your methodology and any pertinent libraries or methods.

Free for the first 3 answer contributors

Interview question asked to Frontend Engineers interviewing at WeWork, Zillow, ESET and others: How would you develop a JavaScript function for text parsing to extract certain data from a string? Include your methodology and any pertinent libraries or methods..