CODE RACE: if yr willing, what's a REGEXP for any domain that has git in the text, anywhere in the text/URI
@hoodieak /git/ ?
@lupine would that cover x.git.com and similar?
Nick Thomas (@[email protected])

1.2K Toots, 356 Following, 173 Followers · South Mainland. Techy sort, works from home.

@hoodieak absolutely. It matches any string that contains the text "git"
@lupine thank!!!!!!
Nick Thomas (@[email protected])

1.2K Toots, 356 Following, 173 Followers · South Mainland. Techy sort, works from home.

@hoodieak and remember /@/ for when you want to match an email address :)
@lupine THANK you are so helpful omg
Nick Thomas (@[email protected])

1.2K Toots, 356 Following, 173 Followers · South Mainland. Techy sort, works from home.

@hoodieak /^.*git.*$/ would do it

and that's just if you want to match the whole string, if you don't care where the match actually is you can just use /git/

@monorail whole string, thanks a ton for this

@hoodieak no problem :3

in case you're interested:

/ <-- beginning of regex literal
^ <-- match beginning of string
. <-- match any character
* <-- modifier to previous, "zero or more times"
git <-- match literal characters
. <-- match any character
* <-- modifier to previous, "zero or more times"
$ <-- match end of string
/ <-- end of regex literal

@monorail ooooo thats cool and good to know
ZK-Class Reality Failure Event 🍓 (@[email protected])

43.6K Toots, 578 Following, 947 Followers · i'm da giant glaceon dat makes all of da rules Admin of https://glaceon.social. Looking for instance announcements? Try @IceRock. Looking for a cute glaceon girl? Well, you've come to the right place. <script>alert('test')</script>

@monorail *bookmarks this guide to experiment with later*
ZK-Class Reality Failure Event 🍓 (@[email protected])

43.6K Toots, 578 Following, 947 Followers · i'm da giant glaceon dat makes all of da rules Admin of https://glaceon.social. Looking for instance announcements? Try @IceRock. Looking for a cute glaceon girl? Well, you've come to the right place. <script>alert('test')</script>

@hoodieak FWIW most of my regex knowledge comes from the docs for the Python regex module (though Python doesn't have regex literals, and it does support some nonstandard stuff) https://docs.python.org/2/library/re.html

there's also some cool regex debuggers online, like https://regex101.com/

it'll show you exactly what each part of the regex is contributing to the string overall matching/not matching, and explain in words exactly what it's doing

7.2. re — Regular expression operations — Python 2.7.18 documentation

@monorail also hiholly
ZK-Class Reality Failure Event 🍓 (@[email protected])

43.6K Toots, 578 Following, 947 Followers · i'm da giant glaceon dat makes all of da rules Admin of https://glaceon.social. Looking for instance announcements? Try @IceRock. Looking for a cute glaceon girl? Well, you've come to the right place. <script>alert('test')</script>

@hoodieak hello :3
@monorail i missed u when i was being on main less
ZK-Class Reality Failure Event 🍓 (@[email protected])

43.6K Toots, 578 Following, 947 Followers · i'm da giant glaceon dat makes all of da rules Admin of https://glaceon.social. Looking for instance announcements? Try @IceRock. Looking for a cute glaceon girl? Well, you've come to the right place. <script>alert('test')</script>