Tranform regex into regexai
Project description
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:
<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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.