Skip to main content

Tranform regex into regexai

Project description

<title>RegexAI Library</title> <style> /* Add some basic CSS for styling and animations */ body { font-family: Arial, sans-serif; background-color: #f4f4f4; text-align: center; padding: 20px; }
    h1 {
        color: #333;
    }

    p {
        color: #666;
        margin-bottom: 20px;
    }

    pre {
        background-color: #333;
        color: #fff;
        padding: 10px;
        border-radius: 5px;
        text-align: left;
        font-size: 16px;
        white-space: pre-wrap;
    }

    pre code {
        display: block;
    }

    a {
        color: #007BFF;
    }

    /* Add a bounce animation to the code block */
    @keyframes bounce {
        0%, 20%, 50%, 80%, 100% {
            transform: translateY(0);
        }
        40% {
            transform: translateY(-20px);
        }
        60% {
            transform: translateY(-10px);
        }
    }

    .animated-code {
        animation: bounce 2s infinite;
    }
</style>

RegexAI Library

RegexAI is a user-friendly library that leverages generative AI to simplify the process of working with regular expressions (regex). With RegexAI, you can effortlessly create and interpret regex patterns using plain language, eliminating the need to understand complex regex syntax. This library's AI capabilities quickly understand your regex queries, making data extraction, string validation, and text manipulation a breeze. Whether you're a beginner or an expert, RegexAI streamlines regex tasks and adapts to your needs, enhancing your productivity and making regex more accessible and efficient for everyone.

Installation

To install RegexAI, use the following pip command:

pip install regexai

Usage

To use RegexAI, you can import the library and use the following code snippet as an example:

from regexai.pattern import find_pattern
code_generator = find_pattern(OpenAi_api_key='Your-api-key')
generate = code_generator.generate_code(paragraph, user_query)
last_code = code_generator.get_code()

Contribute and Use

Head to our official GitHub page to contribute and use the library:

GitHub Repository

<script> // JavaScript to add the 'animated-code' class to code blocks const codeBlocks = document.querySelectorAll('.animated-code'); codeBlocks.forEach((block) => { block.addEventListener('mouseover', () => { block.classList.add('animated-code'); }); block.addEventListener('animationiteration', () => { block.classList.remove('animated-code'); }); }); </script>

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

regexai-0.0.10.tar.gz (4.2 kB view hashes)

Uploaded Source

Built Distribution

regexai-0.0.10-py3-none-any.whl (4.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page