py_regular_expressions
regex-generator
Our great sponsors
py_regular_expressions | regex-generator | |
---|---|---|
43 | 26 | |
1,716 | 373 | |
- | - | |
2.8 | 8.4 | |
9 months ago | 14 days ago | |
Python | Kotlin | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
py_regular_expressions
- Understanding Python re(gex)?
-
TUI app with 100+ interactive Python Regex exercises
These exercises have been adapted from my Understanding Python re(gex)? ebook (free to read online).
-
Show HN: Interactive Exercises for Python Regular Expressions
This new version is a TUI app built with Textual. Previous one was written using `tkinter` [0] and covered only four of the `re` functions.
Now, any valid Python expression is accepted as a solution. Both the builtin `re` and third-party `regex` modules are covered.
These exercises have been adapted from my Understanding Python re(gex)? ebook [1] (free to read online, and PDF/EPUB versions are free till the end of this month).
I'd appreciate your feedback, happy learning :)
[0] https://news.ycombinator.com/item?id=29391107
[1] https://github.com/learnbyexample/py_regular_expressions
- Understanding Python re(gex)? with hundreds of examples and exercises (eBook)
-
Understanding Python re(gex)? with hundreds of examples and exercises (free till Feb 5)
Visit https://github.com/learnbyexample/py_regular_expressions for markdown source, example files, exercise solutions, sample chapters and other details related to the book.
-
Show HN: Interactive exercises for Linux CLI text processing commands
Last year, I did a similar project for 75 Python regular expressions exercises: https://github.com/learnbyexample/py_regular_expressions/tre...
That was with Tkinter. I'm planning to update the regex book next year (to add new features like possessive quantifiers and other misc changes). Along with this update, I'll probably make a TUI version and add support for rest of the exercises.
-
Show HN: The Typing of the RegEX
If you are interested in Python regex, here's my tkinter app with 75 interactive exercises: https://github.com/learnbyexample/py_regular_expressions/tre...
This assumes you already know Python regex. If you'd like learn first, see my free ebook: https://learnbyexample.github.io/py_regular_expressions/
-
Best site to learn regex?
I have an entire book dedicated for learning regex from the basics, with hundreds of examples and exercises. I cover both re and third-party regex module. It is free to read online: https://learnbyexample.github.io/py_regular_expressions/
-
What's the coolest thing you've built so far?
A tkinter GUI that helps you to practice your understanding of regular expressions with 75 exercises: https://github.com/learnbyexample/py_regular_expressions/tree/master/interactive_exercises
-
Py Regex
https://github.com/learnbyexample/py_regular_expressions/blob/master/py_regex.md.
regex-generator
-
Is it a bird? Is it a plane? Test it with Regular Expressions
Whilst Regular Expressions are undeniably powerful --- virtually NOBODY knows how to set up Regular Expressions! There are a number of tools that help you build / test regular expressions, such as https://regex-generator.olafneumann.org/ or https://retool.com/utilities/regex-generator (no responsibilities accepted for the use of any of these tools!)
-
Regex not working
Ho did you arrive at the regex? I usually use a website to , such as https://regex101.com/, https://regexr.com/, https://regex-generator.olafneumann.org/ in combination of each other, as some explain better than the other.
-
Regex Generator?
Is there a regex generator for Reddit's Automod or Python? I've already tried Googling "regex generator python" but I only came up with https://regex-generator.olafneumann.org/, https://pythex.org/, https://regex101.com/, and a whole bunch of build/testers. Olaf Neumann's generator seemed the most promising, but I couldn't get it to work because I didn't know how to separate each phrase, i.e. "you're dumb," "your dumb," "youre dumb," and "you are dumb." I was able to make sense of https://www.javainuse.com/rexgenerator but it's only for java.
-
[P] LazyShell - GPT based autocomplete for zsh
Shout out to https://regex-generator.olafneumann.org/
-
On god the muting has not worked so far, but I'm going to try. Give me new terms to block please.
Here's some more websites that might help if you're interested: https://regexr.com/ - Lets you test the regex https://regex-generator.olafneumann.org/ - Can help you generate regex https://en.wikipedia.org/wiki/Regular_expression#Basic_concepts - Basic syntax
-
Code newb trying to add an automod action for specific word triggers in posts.
https://regex-generator.olafneumann.org/ (type in any text and it will suggest a matching regex)
-
Egrep: Finding duplicate words
I really like this tool to generate regex. It may not generate exactly what you need, but it'll get you on the right track. Often times, it does what I need.
- need to remove all string that come after "-" but only if "-" comes after "**"
-
Cases: Custom input mask on field
Nah, just use a RegEx generator and then the REGEX(text, regex_text) in a validation rule and you are done.
-
AutoRegex
This is a special case of the general problem of program synthesis[1][2][3][4], where the search space of possible programs are all regex strings and the seed driving the synthesis is Input-Output examples.
There's research [5][6] as well as practical tools [7][8][9].
[1] https://en.wikipedia.org/wiki/Program_synthesis
[2] https://www.microsoft.com/en-us/research/project/program-syn...
[3] https://dl.acm.org/doi/10.1145/1836089.1836091
[4] https://royalsocietypublishing.org/doi/10.1098/rsta.2015.040...
[5] https://cs.stanford.edu/~minalee/pdf/gpce2016-alpharegex.pdf
[6] https://www.researchgate.net/publication/261794574_Automatic...
[7] https://regex-generator.olafneumann.org/
[8] http://regex.inginf.units.it/extract/
[9] https://stackoverflow.com/questions/6219790/need-a-regex-too...
What are some alternatives?
bms-tools
RegExr - RegExr is a HTML/JS based tool for creating, testing, and learning about Regular Expressions.
melody - Melody is a language that compiles to regular expressions and aims to be more readable and maintainable
mpack - MPack - A C encoder/decoder for the MessagePack serialization format / msgpack.org[C]
kleenexp - modern regular expression syntax everywhere with a painless upgrade path
PropertyWebBuilder - Create a fully featured real estate website on Rails in minutes! ⛺
regexgen - Generate regular expressions that match a set of strings
resholve - a shell resolver? :) (find and resolve shell script dependencies)
regexgen-ruby - Generate regular expressions that match a set of strings
ntfy-android - Android app for ntfy.sh
RandomStuff - Random Stuff