searchRegex(regexPattern) {
		const regex = new RegExp(regexPattern, 'g');
		const dataStr = new TextDecoder('iso-8859-1').decode(this.data);
		let match;
		while ((match = regex.exec(dataStr)) !== null) {
			const byteIndex = match.index; // With 'iso-8859-1', char index == byte index
			const length = match[0].length;
			this.matches.push({
				index: byteIndex,
				length: length
			});
			// Prevent infinite loops with zero-length matches
			if (match.index === regex.lastIndex) {
				regex.lastIndex++;
			}
		}
		console.log(`searchRegex: Found ${this.matches.length} matches.`);
	}
Searches using a regular expression and stores all match positions.

@param {RegExp} regexPattern - The regular expression pattern to search for.