[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology

Name
Options
Comment
Verification
4chan Pass users can bypass this verification. [Learn More] [Login]
File
  • Please read the Rules and FAQ before posting.
  • You may highlight syntax and preserve whitespace by using [code] tags.

08/21/20New boards added: /vrpg/, /vmg/, /vst/ and /vm/
05/04/17New trial board added: /bant/ - International/Random
10/04/16New board for 4chan Pass users: /vip/ - Very Important Posts
[Hide] [Show All]


🎉 Happy Birthday 4chan! 🎉


[Advertise on 4chan]


File: 1752758941392837.png (944 KB, 1903x974)
944 KB
944 KB PNG
I've been looking for cheat sheets for Regex, as a few of my extensions use it. And I stumbled upon this site https://overapi.com, pic related. The main page offers a ton of cheat sheets for many programming languages, complete with links to the documentation when you click on each element. The thing is, the site itself is a bit questionable (why does it have categories for Facebook and Yahoo that only link to the main site and their Wikipedia page?), but this got me thinking, what are some must have resources for this sort of stuff?

I don't mean just programming languages, I'm especially interested in stuff like the uBO solutions list they have on Reddit:
https://old.reddit.com/r/uBlockOrigin/wiki/solutions
https://old.reddit.com/r/uBlockOrigin/wiki/solutions/youtube

And yes, I know there's an official /g/ wiki, but it's a bit intimidating to slog through because of how much stuff is in there.
>>
regex isn't really that complex, if remembering the full letter anchor and character classes, just don't do it, and use [a-z] character range tokens instead, they're always portable and make you immune to extended regex compatibility BS.
>>
>>106780309
Don't get me wrong, I'm not trying to do anything fancy with it. I'm a filthy no-coder. I just use it for the Redirector add-on and for the 4chan XT filter. Even so, I managed to fuck it up a while back and filtered the entire board, almost every single thread. To this day, I'm not entirely sure how, but I started over since then and was more careful and precise with my picks.
>>
whats with the stupid texture'd backdrop?
>>
>>106780465
I don't know, the site itself is quite weird. Which is why I was asking for better alternatives. I know there are a ton of cheat sheet websites out there, but that makes finding the best ones even harder.
>>
>>106780287
I just use something like regexr when I need to write complex regex. You learn a lot faster actually applying the stuff in real-time than attempting to memorize everything.
>>
File: file.png (112 KB, 1080x678)
112 KB
112 KB PNG
>>106780491
I personally use Regex101
https://regex101.com
Not entirely what you want, but it DOES have a list of things in the bottom right

If you need something more structured, the Ruby Regex docs are decent, and cover a lot of things. Not all of them are supported by every regexp engine, but a lot of things use the same engine ruby does
https://devdocs.io/ruby~3.4/regexp
>>
>>106780512
>>106780665
Thanks! I don't know how well real time testing it would go though, seeing as the extensions I input it in (Redirector and 4chan XT's filter fields) already have most of the code built-in so to speak.
>>
>>106780788
Javascript, which those use, has mostly the same regexp as ruby, so you should be good
>>
>>106780287
imagine writing regex manually in current year. If it's more complicated than a couple dots and stars and special characters i just tell gpt to do it desu, i really can't be bothered to think about regex anymore
>>
>cheat sheet for regex/anything
is it 2013 again?
literally just put whatever regex you want into Claud, ChatGPT
>>
>>106781173
>>106781336
I'd rather use both. Chatbots do screw up quite often.
>>
>>106781389
Tell ChatGPT to make you a cheatsheet
>>
>>106781173
>>106781336
>>106781471

AI bot spotted.
>>
>>106781173
>>106781336
LLMs are unbelievably useless the moment you need anything even slightly complex. Applies to RegEx, JS, CSS, programming. If you'd rather have jeet-tier code in your project instead of spending a few minutes learning and tinkering then you plainly never coded anything worthwhile to begin with and you should never open your mouth or even think about giving your unwanted, retarded opinion to others again
>>
>>106781616
It’s worth noting that the llm trainers were stupid enough to use the stack exchange questions as correct input.
In some esoteric areas chat spits out almost the exact question that was asked as an answer, omitting the “why doesn’t this code work”
>>
>>106780287
I had a hard time with regex when I started out, but I did an online course about it on linkedin learning or youtube I don't remember, and it explained things really well.
I don't think you will actually learn much or anything from these cheat sheets as a beginner. Just do some exercises, get the basics down, and you'll know what to search for when you want to do something you don't already know.



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.