// Import XRegExp import XRegExp from 'xregexp' // Example matching function const parseLog = (data: string) => { // Define the regex components const logPattern = XRegExp( ` ^\\*(?\\w{3})\\s+ (?\\d{1,2})\\s+ (?