1.2K Toots, 356 Following, 173 Followers · South Mainland. Techy sort, works from home.
1.2K Toots, 356 Following, 173 Followers · South Mainland. Techy sort, works from home.
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/
@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
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>
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
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>
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>