this ai tool(gpt-3.5) is for those who hate regex!

  • By Sercan Arğa
  • Last update: Aug 2, 2023
  • Comments: 3


A user-friendly AI-powered tool for those who hate writing regular expressions! Powered by GPT-3.5, FuckRegex helps you generate regex patterns without the headache.


  • Generate regex patterns with natural language input
  • Interpret entered regex for better understanding
  • Validate generated regex patterns
  • Generate regex usage examples in popular programming languages

Getting Started

These instructions will help you set up and run the project on your local machine for development and testing purposes.


Ensure you have golang (v1.20 or later) and postgresql database installed on your system:


  1. Clone the repository:
git clone
  1. Go to the project directory:
cd fuckregex
  1. Modify .env file:
nano .env
  1. Create a postgresql database using the sql file under the resources directory.
cat resources/*.sql
  1. Install dependencies:
go mod tidy
  1. Run the API service:
go run cmd/api/main.go
  1. Run the web service:
go run main.go
  1. Open your web browser and visit http://localhost:8181 (replace 8181 with the port number specified in the configuration).


We welcome contributions from the community! You can open PRs and issues to help us improve the project.


  • Implement request moderation for ChatGPT submissions
  • Improve security measures
  • Add the ability to interpret entered regex
  • Introduce regex validation for generated patterns
  • Generate regex usage examples in popular programming languages
  • Enhance design and source code


This project is licensed under the MIT License.


Thanks go to these wonderful people

Ertuğrul TURAN





  • 1

    A button/link to open in regex101

    Using the regex on regex101 with a button or link that shows up once the regex is produced would make the site really useful.

    Produced regex:


    The value should be URL-encoded when redirecting:$
  • 2

    It generates with texts


    The prompt requires some improvements.

  • 3

    Listing featured searches, instead of latest ones

    Listing recent searches doesn't make sense to me since some people attempt to spam or do useless searches. There should be custom searches, or we should think of something else for the homepage, like how to use the site.