// SPDX-License-Identifier: Apache-2.0
import { UnsupportedOperationError } from '../errors/unsupported-operation-error.js';
export class Regex {
    constructor() {
        throw new UnsupportedOperationError('This class cannot be instantiated');
    }
    static escape(string_) {
        return string_.replaceAll(/[-/\\^$*+?.()|[\]{}]/g, String.raw `\$&`);
    }
}
//# sourceMappingURL=regex.js.map