class TextParsingLiteralUtil {




    private TextParsingLiteralUtil() {
        super();
    }



    static boolean isRegexLiteralStart(final char[] buffer, final int offset, final int maxi) {<FILL_FUNCTION_BODY>}





/*
    static boolean isRegexLiteralEnd(final char[] buffer, final int offset, final int maxi) {
        return ((maxi - offset > 1) &&
                buffer[offset] == '*' &&
                buffer[offset + 1] == '/');
    }
*/


}


        if (offset == 0 || buffer[offset] != '/') {
            return false;
        }

        // We will check that this is not one of the other structures starting with a slash (comments)

        if (TextParsingCommentUtil.isCommentBlockStart(buffer, offset, maxi)) {
            return false;
        }

        if (TextParsingCommentUtil.isCommentLineStart(buffer, offset, maxi)) {
            return false;
        }

        char c;
        int i = offset - 1;
        while (i >= 0) {
            c = buffer[i];
            if (!Character.isWhitespace(c)) {
                return c == '(' || c == '=' || c == ',';
            }
            i--;
        }

        return false;

    
<no_super_class>