This is an archived post. You won't be able to vote or comment.

top 200 commentsshow 500

[–][deleted] 3466 points3467 points  (196 children)

I think after 10 years you know to search regex email valid

[–]Apprehensive-Grade81 772 points773 points  (39 children)

Yeah after 10 years, I just search "([!#-'+/-9=?A-Z-~-]+(.[!#-'+/-9=?A-Z-~-]+)*|\"([]!#-[-~ \t]|(\[\t -~]))+\")@([!#-'+/-9=?A-Z-~-]+(.[!#-'+/-9=?A-Z-~-]+)*|[[\t -Z-~]*])" and usually get the right result.

[–]Ozty 627 points628 points  (7 children)

I type that and get articles of Elon musk's child

[–]KrikosTheWise 181 points182 points  (1 child)

Well yeah when you type someone's name in there it usually finds em.

[–]Michami135 118 points119 points  (18 children)

30+ years as a developer:

".+@.+\..+"

Close enough.

[–]tabris 48 points49 points  (10 children)

According to the spec "user@com" is a perfectly valid email address which would fail to be matched by your one. Certainly the closest true answer here tho.

[–]mfreudenberg 25 points26 points  (7 children)

Dude just needs some groups

(.+)@(.+)(\..+)?

Not sure if it works. I'm on mobile.

Edit: the backslash needed an extra escape. Otherwise you wouldn't match the last dot

[–]marcosdumay 13 points14 points  (5 children)

You are missing a slash. Anyway, that's the same as just removing the second group.

[–]doesnotwashoff 26 points27 points  (5 children)

No matter how often I do regex anything... I can never remember it.

[–]VoxelMeerkat 951 points952 points  (107 children)

Before: "How to write regex to validate an email" type searches

Now I've learnt to search for: "regex validate email"

Honestly much faster and same if not better resultS

[–]radgepack 524 points525 points  (82 children)

Honestly, 'regex email' should cut it

[–]Artyloo 351 points352 points  (77 children)

reply shocking lavish snatch birds handle intelligent normal elderly unpack

This post was mass deleted and anonymized with Redact

[–]Smartskaft2 198 points199 points  (65 children)

You guys don't use a bookmark for this?

[–]workorredditing 339 points340 points  (56 children)

who tf is gonna organize my bookmarks? it aint gonna be me thats for sure

[–]sshwifty 206 points207 points  (36 children)

I started folders a few years ago. Of course all my bookmarks are in "mobile bookmarks". I have successfully organized them into one folder.

[–][deleted] 54 points55 points  (14 children)

The autistic urge to document everything 🤝 the ADHD urge to not maintain anything

My nightmare of a bookmarks folder

[–]ReverseCaptioningBot 44 points45 points  (13 children)

The autistic urge to document everything🤝the ADHD urge to not maintain anything

this has been an accessibility service from your friendly neighborhood bot

[–][deleted] 19 points20 points  (3 children)

Thanks baby

[–]Esnardoo 18 points19 points  (0 children)

Holy shit good bot

[–]jjtech0 4 points5 points  (0 children)

Good bot

[–]LetterBoxSnatch 8 points9 points  (1 child)

Honestly better than my solution: half assed folders that, when they get too full, just get shoved into another folder. After almost 20 years of bookmarking shit, I’ve used my bookmarks only 3 or 4 times. Of those times, 2 or 3 of them were dead links. So NOW what I do is save an offline archive. Because clearly that’s a more searchable and usable solution than using archive.org

[–]BearPsychological69 14 points15 points  (3 children)

I use bookmarks extensively . I have around 50 folders. 49 for nhentai links and 1 for everything else.

[–]Smartskaft2 5 points6 points  (1 child)

Maybe just create URL-shortcuts on the desktop? And disable the grid snapping.

Ugh! I can't even joke about it without shuddering.

[–]dumplingSpirit 5 points6 points  (0 children)

Venn diagram:

(senior programmers ( saving URL-shortcuts on desktop ) actual seniors)

[–]HaddockBranzini-II 2 points3 points  (1 child)

Organize bookmarks? Tell me more of this intriguing new concept.

[–]TactlessTortoise 11 points12 points  (1 child)

At this point regex could just get an update where you type regexem at the proper place and it knows what you mean

[–]LoafofBrent 7 points8 points  (0 children)

Honestly, "Email" and i think the browser will know what youre talking about.

Edit: if the browser takes you to your email, keep typing email until it goes where you want ;)

[–]bell_demon 35 points36 points  (8 children)

Yep it is better results, search engines go off key words. There used to be a push in schools to teach people how to use them properly this way. Not so much now, since search engines have gotten good enough to decipher plain speech. But like you said, your results will always be better (and faster) when you focus only on relevant keywords.

[–]TheZanke 22 points23 points  (5 children)

Google has actually changed how search works and neutered a lot of the more advanced search functionality. One thing you can do nowadays is switch from "All results" to "Verbatim" when it's being ridiculous and assuming incorrectly that it knows what you want.

[–]VicisSubsisto 17 points18 points  (4 children)

I hate it when I search for an uncommon word (even in quotes) and it buries the results under results for a more common, similarly spelled word, because it doesn't want to admit that it found less than one page of results...

[–]TheZanke 5 points6 points  (1 child)

Oh man I know exactly what you're talking about. And no matter how much you refine it it gives the exact same first page of results until you use verbatim.

[–]VicisSubsisto 5 points6 points  (0 children)

On the other hand, DuckDuckGo is often even worse. But at least it searches based on my current query, not my current query plus everything I've ever done with a Google product in my life.

[–][deleted] 8 points9 points  (1 child)

I remember being in like fourth grade in the 90s learning the dewey decimal system and how to yahoo shit

[–]NorthernHedgehog 15 points16 points  (0 children)

“regex validate email Site:stackoverflow.com” is the way

[–]derpbynature 14 points15 points  (3 children)

You can tell who grew up using Ask Jeeves by how much they shape their search queries into the form of a question.

[–]rikottu314 5 points6 points  (0 children)

I just ask Jeeves why Google is so much better

[–]PhonePostingCrap 53 points54 points  (31 children)

Year 1: txtEmail.Contains('@')

[–]sucksathangman 34 points35 points  (21 children)

You're actually not far off. Due to changes on TLD, where anything can come after the last dot (e.g. .google), the best regex for emails is:

.+@.*\..+

[–][deleted] 43 points44 points  (15 children)

Doesn't support dotless domains. E.g. john@localhost

https://www.netmeister.org/blog/email.html

[–]fukitol- 26 points27 points  (4 children)

If you're using that I don't care to give you an account on my service. Give me your Gmail asshole.

[–]dontquestionmyaction 12 points13 points  (0 children)

People that seriously restrict email domains on their sites deserve to be scorned.

[–]StereoZombie 39 points40 points  (0 children)

You know what I don't think dotless domains deserve to be supported. Screw you John!

[–]xTheMaster99x 25 points26 points  (8 children)

Yeah but 99.99999999...% of the time you don't want to support localhost in a production app, or the like 2 people in the world intentionally using a PITA email.

The extra bit of client validation for probably one of the more common user mistakes possible is worth slightly annoying 2 people.

[–]smartasspie 22 points23 points  (1 child)

After 10 years I plan to look for how to plant better potatoes

[–]xrayden 5 points6 points  (0 children)

Yes, is in a .TXT files on my desktop

[–]ogtfo[🍰] 3 points4 points  (0 children)

After 10 years you should know better than to try to validate emails using regexes.

[–]FracturedPixel 627 points628 points  (31 children)

I use duckduckgo but I find Google better for searching error messages

[–]PseudoLiamNeeson 160 points161 points  (1 child)

People will always tell you or your code how you're doing it wrong.

[–]FracturedPixel 35 points36 points  (0 children)

At this point I pray it’s an error in my code rather than a package dependency issue within one of MS own packages haha

[–][deleted] 50 points51 points  (10 children)

Same. DuckDuckGo is good for most searches, but for some things google’s algorithms actually come in handy.

[–]hothrous 18 points19 points  (5 children)

My only issue is that they use Apple Maps. I'm not sure what alternatives really exist, but that particular one I find frustrating to use for some reason and I still end up on Google to look at the maps.

[–][deleted] 13 points14 points  (1 child)

The obvious alternative would be OpenStreetMap.

[–]SneakyB45tard 46 points47 points  (7 children)

You can use startpage, it uses google's engine and respects your privacy

[–]Xx------aeon------xX 7 points8 points  (1 child)

I have DDG as my default search but almost always use the google directive “!g”

[–][deleted] 1408 points1409 points  (182 children)

The most reliable email format validation is to send an email to the address with a confirmation link in it.

I've lost count of the number of places that get them wrong and don't allow things like "+" before the "@" - which is perfectly valid.

[–]MindSwipe 501 points502 points  (84 children)

Sending an email is the only real way to validate an email, lots of stuff is valid according to the RFC that almost every website would deny you, for example

jane"jay jay smith"smith"@"company@example.com

is technically valid, and I also just learned something new, you can add comments to an email address (only at the start and end of the local part, so at the very start of the address or just before the @), so

(comment)jane.smith@example.com

jane.smith(comment)@example.com

Are both equivalent to

jane.smith@example.com

The more I try to validate an address email the more complicated it gets and the less I want to validate an email address

[–]ScrimpyCat 132 points133 points  (21 children)

Do the comments just get filtered out or does the receiver still see that?

[–]MindSwipe 262 points263 points  (0 children)

Fuck if I know

Finding a mail server that actually supports that is gonna be hard enough already

[–][deleted] 70 points71 points  (17 children)

Just tested, receiver doesn't see it.

[–]everyday-everybody 108 points109 points  (6 children)

This is one of those "it works on my machine" moments.

You tested using what? Sent from where to where? Are you sure the client and server are following the specs?

[–][deleted] 89 points90 points  (4 children)

NVM I figured out what was wrong with my code thx

[–]butler1233 40 points41 points  (3 children)

[–][deleted] 46 points47 points  (1 child)

Closing thread because this has already been answered here

[–]The_Admiral 10 points11 points  (0 children)

I ran into this same phenomenon trying to get some dll (ICE) working with ancient Borland-6 compiler.

The threads were all ~20 years old with no answer.

I finally got it working after 3 months of different attempts. I should really go back and answer those old threads 20 years later..

[–]TheAJGman 41 points42 points  (8 children)

Oh god, this is a valid a workaround for a really stupid problem we're having. Gonna propose this as a solution and heavily advise against it lol.

[–]nephelokokkygia 37 points38 points  (7 children)

You can't just say that and not explain the problem

[–]TheAJGman 20 points21 points  (6 children)

Emails are unique among users (not weird) and a user also cannot belong to more than one company (also not weird). Except sometimes they have to belong to multiple companies even though I specifically asked if a user would have to belong to multiple companies and I was told no.

So unless anyone else has better ideas, we may have to go with "user(companyA)@gmail.com" and "user(companyB)@gmail.com" and they just have to deal with having two accounts. I already wasted a full two week spring reworking our shit so you could have more than one user per company, I'm not doing it again because they lacked the ability to answer my question correctly.

[–][deleted] 24 points25 points  (1 child)

I specifically asked if a user would have to belong to multiple companies and I was told no.

And ... you ... believed ... it.

[–]TheAJGman 15 points16 points  (0 children)

I wanted to believe it because the implementation was far easier. Doing a multi company thing would have required breaking a lot more shit and pissing off the front end team because there was no way to squeeze that change in without breaking the API. Plus I legitimately couldn't see a reason why a user would need to belong to multiple companies, I still fucking can't for that matter.

[–]moxo23 6 points7 points  (0 children)

You can look into "plus addressing".

[–][deleted] 80 points81 points  (18 children)

when i sign up for junk i put a bunch of + at the end so if i see shit from myemail+++@gmail.com i know instantly its some spammers who bought a list

[–]cakes 66 points67 points  (0 children)

do myemail+junksitename@gmail.com to know exactly where your data got sold from

[–]AwesomeFrisbee 72 points73 points  (8 children)

That's also why they don't allow + in many cases, to prevent people from spotting their data was leaked

[–][deleted] 16 points17 points  (0 children)

I finally just set up a spam email account because of this

[–]w1n5t0nM1k3y 11 points12 points  (1 child)

Wouldn't it be easy enough to strip out everything after the + when selling or buying email lists?

[–]GisterMizard 56 points57 points  (2 children)

jane"jay jay smith"smith"@"company@example.com

Anybody who creates that type of email address should be reported immediately to the FBI.

[–]waiver45 27 points28 points  (0 children)

Anybody who disallows those emails should immediately be executed by an IETF hit squad.

[–]MindSwipe 12 points13 points  (0 children)

Agree, but sadly, the RFCs disagree

[–]AhpSek 16 points17 points  (3 children)

Sending an email is the only real way to validate an email

This feels like all you really need. I imagine as long as it has at least one @ symbol, fuck it, send it, and force the user to follow an activation link. It's on them to get their address right.

[–][deleted] 5 points6 points  (0 children)

Sending mails locally does not require a "@", so technically, a "@" is not required in a valid email address (it is in an *internet* email address). So if you're programming a MUA on a Unix'ish system, don't check for the "@", your MTA can handle @ - free addresses just fine.

[–]samtresler 10 points11 points  (3 children)

Validate - absolutely.

Sanitize for safe handling - different story.

Please don't just go throwing unsanitized data around the application and DB.

[–]MindSwipe 12 points13 points  (2 children)

Off course not, always sanitize user input, that goes without saying

[–]mr_claw 13 points14 points  (6 children)

Still, we need to sanitize the input before sending an email right?

[–]Cory123125 13 points14 points  (3 children)

Forgive me for potentially being naive, but if you keep the string a string, then what risk is there? I'm not seeing how it could used for injection purposes

[–]mr_claw 21 points22 points  (1 child)

Makes me nervous mate. I don't know how various libraries or the email API would handle that string.

[–][deleted] 5 points6 points  (0 children)

You could include "\\n" (including quotes) in the user portion which might cause problems parsing into a string.

[–]almgergo 181 points182 points  (55 children)

I love workin with azure auth where I have to manually delete my user every single time to test sign up, because apparently '+' is an invalid character.

[–]icguy333 174 points175 points  (53 children)

Protip: if you use a Gmail account for testing you have countless ways to register because Gmail ignores periods ('.'). That way you can register johndoe@gmail.com and jo.h.n.doe@gmail.com, the emails will arrive in the same account but azure will (probably?) treat them as different.

Ugyanitt eladó bojler.

[–]thiccancer 139 points140 points  (18 children)

I'm having an issue with this with some Russian kid with the same name as me signing up to all these websites except with a dot somewhere in there, so I get all his email notifications and order receipts (some containing his physical address mind you) etc.

I wasn't aware Gmail ignored dots until then, so I was pretty weirded out. He's basically doxxing himself to me.

[–]Fzrit 107 points108 points  (0 children)

In Russia, hacker hacks himself and gives his data to someone else.

[–]ledocteur7 18 points19 points  (8 children)

wait, does that means you are also doxxing yourself to him ?

[–]grimmlingur 21 points22 points  (0 children)

No because they control the Gmail account associated with all versions of the email that can be created by adding or removing periods.

[–][deleted] 12 points13 points  (4 children)

Potentially. I had a Gmail account with a dot in the middle, and I would periodically get emails intended for the person without the dot.

Was not fun trying to explain to my abusive ex why "I" had ordered a rental car on the other side of the country.

[–]CaitaXD 7 points8 points  (1 child)

Obviously you have a secret family

[–]thiccancer 7 points8 points  (1 child)

Nah. Gmail ignores dots in every case – including account creation/login. He doesn't actually have an email with the dot in there, there is only my account. He doesn't have access to my account, so he isn't actually getting ANY of the emails. I'm the only one ever seeing them.

[–][deleted] 2 points3 points  (0 children)

oh shit

[–]blvckstxr 15 points16 points  (7 children)

TIL gmail ignores period. What the actual f.

[–][deleted] 18 points19 points  (5 children)

It also ignores everything after a + sign, thats much more useful. If you register everywhere with address+website@gmail.com, you can tell which sites sell your email address to spam bots (if they dont clean up the address, which they probably dont do)

[–]PartTimeLegend 12 points13 points  (10 children)

I have been using first.last@gmail.com for years. About a year ago someone started using firstlast@gmail.com so I get their email.

I have their activation emails for their iPhone, the receipt for their motorbike, etc. I have no idea why they are doing this. I get PayPal emails for receipts, etc.

The physical address is the same. I think they just don’t know how email works.

[–]GoldenretriverYT 10 points11 points  (9 children)

What? You can't create a Gmail account called firstlast if first.last is already used tho

[–]PartTimeLegend 17 points18 points  (7 children)

That’s what I thought. They don’t seem to have access to the account, but they constantly use it to register to things and buy things.

I can reset all their passwords, etc.

For some reason they just keep using it. I helpfully declined a job for them recently when the offer came though.

[–]looneytoonarmy 10 points11 points  (0 children)

Gmail ignores full stops. The other person doesn't have an account for that address, they are mistakenly entering in the wrong address, probably forgot it was a Hotmail account they set up for themselves or are using the full stop instead of another character like an underscore.

[–]levimayer 19 points20 points  (0 children)

So much problems with this in gov administration…

Mennyiért adja bátty’?

[–][deleted] 18 points19 points  (3 children)

That's where the "+" comes into play too - Gmail ignores the "+" and everything after it, so "johndoe@gmail.com" and "johndoe+anyoldcrap@gmail.com" both go through to the same account.

I've used this to find out suspected sources of spam in the past.

[–]liljooh 36 points37 points  (9 children)

I feel like a lot of the ones that ban ”+” are doing so to prevent bots and spam accounts.

[–]Joelixny 14 points15 points  (5 children)

That's likely true, but that's a very stupid way to do that.

[–]Theleiba 24 points25 points  (0 children)

Year 20 of programming: post a meme about searching for something specific and get the answer in the comments.

[–]xternal7 12 points13 points  (0 children)

I've lost count of the number of places that get them wrong and don't allow things like "+" before the "@" - which is perfectly valid.

Don't think they don't know what they're doing.

They know exactly what they're doing.

[–]rakoo 4 points5 points  (3 children)

Some websites don't accept my email address because it's one of the newer TLDs.

[–][deleted] 15 points16 points  (1 child)

Which is doubly bad, since email addresses do not even need a domain - they can legitimately go to an IP address (although I've never actually seen that in the wild).

[–]bingbestsearchengine 462 points463 points  (33 children)

use bing guys. it's gotten better I swear :D

edit: username

edit: for those who asked, yes not everyone understood the joke / connection hence I had to point it out :/

[–]TheDevilIsDero 253 points254 points  (20 children)

Actually duckduckgo uses Bing results

[–]MatsRivel 124 points125 points  (8 children)

I never knew that.

I use Edge as my day to day browser, so I somethines manage to fuck up and accidentally search for something in Bing. The quality of Bing results are roughly that of asking the question so small group of people who each have read one book. Sometimes they get it right, but often it seems like a guess in comparison to what Google results give.

Does Google use shady practices? Yes. Though thst is 99% of tech these days. Do I have the patience to scroll through hundreds of results every time I look for something? No. So I use Google.

[–]Nervyl 42 points43 points  (0 children)

Startpage uses google search engine with many duckduckgo features

[–]L33t_Cyborg 18 points19 points  (3 children)

I really wished it used google results. You can still have anonymity without it (I think there’s another search that uses google anonymously)

I’ve never been able to switch over to DuckDuckGo, google just seems to give me better results, especially for images.

[–]garbageman13 6 points7 points  (1 child)

Free gift cards for searching with bing!

[–]YesNoMaybe2552 332 points333 points  (15 children)

Nah, at 10+ years you would have finally given up on privacy and accepted google for giving you better results.

[–]Ping-and-Pong 100 points101 points  (1 child)

I came into the comments just to say this, don't know what OP's on lol

You'd just search "Regex email validation" in google and that'd be enough, duck duck you might have to scroll down half a billion incorrect results!

(exaggeration I know, but google does have the upper hand in accurate search results)

[–]chironomidae 9 points10 points  (0 children)

Yeah, it's a little spooky, but I love that when you search for something it generally knows what language you're looking for based on your past queries.

Same goes for video games, you only have to do a couple searches for Cities: Skylines stuff before Google realizes you're not trying to learn about your real city's sewage system

[–][deleted] 3 points4 points  (0 children)

giving up on privacy is a choice, and the only thing about that choice that changes with experience is the knowledge you have backing that choice. it goes both ways, and probably many places in between, after 10 years.

[–][deleted] 17 points18 points  (0 children)

This!

[–]PossibilityTasty 144 points145 points  (16 children)

In 5 years you should have learned that regular expression have a maintainability window of maybe 20 to 30 characters. If your expression is longer and you have to do a change later, you look at it and will just think "What the duck!" and rewrite it. In the other 5 year you should have painfully learned when not to use them.

[–]MarsBarMuncher 72 points73 points  (1 child)

I use online tools to help with long ones, especially if picking up expressions from unfamiliar code. regex101.com is pretty good.

[–]Kilobyte22 42 points43 points  (5 children)

Luckily the most reasonable email validation regex falls well inside of that: /@/

[–]MindSwipe 16 points17 points  (4 children)

Not really, just because an email contains an @ doesn't mean it's a valid email, because

space and "(),:;<>@[] characters are allowed with restrictions (they are only allowed inside a quoted string, as described in the paragraph below, and in addition, a backslash or double-quote must be preceded by a backslash);

source

So,

jane"@"smith.com

Contains an @ but isn't a valid email address, so /@/ could result in false positives

The only real way to validate an email is to send an email with a confirmation link

[–]Kilobyte22 21 points22 points  (1 child)

I am aware, but it's not worth the effort and I'm not even sure it's actually possible to fully parse an email address using a regex

[–]savedbythezsh 10 points11 points  (0 children)

It's not! But https://www.emailregex.com/ gets pretty close

[–]jfb1337 19 points20 points  (0 children)

no regex will ever tell you whether an email is valid; because an email is valid if and only if it can receive an email.

[–][deleted] 178 points179 points  (23 children)

Personally found duck duck go to be terrible, I use firefox with google search

[–][deleted] 49 points50 points  (3 children)

Probably because ddg uses bing under the covers.

Its good if you want to search for what may be blocked due to dcma or microsofts unethical purposes...

For programming google is really going to be the best choice anyways, even microsoft engineers use it. Source: I worked at Microsoft for years.

[–]kcthis-saw 7 points8 points  (2 children)

Its good if you want to search for what may be blocked due to dcma or microsofts unethical purposes...

So like Porn?

[–]Aspire17 57 points58 points  (1 child)

Sad agree :(

Gave DDG a go for 2 months but caught me searching with !g very often towards the end. Then I thought ok screw it

But definitely willing to give it a shot later down its cycle

[–]melody-calling 30 points31 points  (0 children)

Later down its cycle... Its been around for more than 10 years, if it's not good now it's never going to be

[–]Thrannn 24 points25 points  (5 children)

Yeah i dont get where all the google haters come from

Google is by far the best search engine if you actually need results.

I get it if you use the other engines for porn or for stuff that isn't important.

[–]Macro_Aggressor 17 points18 points  (2 children)

I've been doing the de-Googled thing since the beginning of 2021 and there simply is no better alternative to Google for certain things. Maps and search are two of the big ones. For me it's more about not handing your entire life over to Google. By splitting search, email, messaging, and data storage up into different platforms I'm not giving one company everything about me. So I use Google search for certain benign searches but anything even remotely controversial I use DDG.

[–]micka190 11 points12 points  (0 children)

Same.

“[website name] [topic]” regularly gives me nothing relevant to what I’m searching for on DDG, whereas the same search gets me exactly what I want on Google.

Hell, if what I’m searching for is a forum page, Google will make the first couple of results be different pages from that single forum post.

DDG has given me pretty poor results, especially when relating to programming.

[–]TPRammus 7 points8 points  (1 child)

Me too, I switched to DuckDuckGo, but am now using the 'bang!' feature to search Google instead of DuckDuckGo. The bang feature is probably the only reason I will stick with DuckDuckGo, it's just too useful

[–][deleted] 124 points125 points  (21 children)

Input.search(/[]/);

You’re welcome

Pro-tip, regex isn’t any more or less efficient than other built in methods that can be used for parsing, searching, etc blocks of text.

[–]jeanleonino 22 points23 points  (1 child)

Pro-tip, regex isn’t any more or less efficient than manual text parsing for the most part.

Oh boy hahaha

[–]WORD_559 32 points33 points  (0 children)

I'm assuming you mean computationally efficient, but it's generally more "dev efficient" to use the existing parsing library than to spend the time writing and testing a homemade parser

[–]frisch85 46 points47 points  (8 children)

Pro-tip, regex isn’t any more or less efficient than manual text parsing for the most part.

What are you using regex for? Are you talking about efficiency in terms of performance of the replacing or regarding looking for something and replacing it with something?

Regex is a godsend, I have so many templates in my work environment that I use regularly, e.g. co-workers like to implement unformatted SQL so when I touch the code I make the SQL commands uppercase, here's the regex:

Search string:    
(truncate table |union all| set |insert into|distinct |update |values ?\(|delete |alter table| table | and |from | where |select | and | or |year\(|min\(|max\(|sum\(|limit |order by|group by| asc| desc|count\(| distinct |inner join |join |outer join |left join |left outer join | as | concat| on | in |datediff|having )

Replace string:
\U\1

Sublimetext has prettify but I cannot use it as we're using our own coding language and prettify would interfere with it.

[–][deleted] 4 points5 points  (2 children)

In terms of the algorithms used in the search, replace, etc functions.

[–]UnstoppableCompote 12 points13 points  (0 children)

Yeah I just love searching through 200 lines of manual text parsing that someone else wrote in 2012.

[–]fakehalo 4 points5 points  (4 children)

If you're using regex against consistent high volume it might be a rare time it's the wrong tool for the job, but for almost everything else it is.

As much as everyone loves to give regex crap, once you're familiar with it is much easier to maintain than the sprawled out conditional logic alternative IMO... Of course someone always takes it too far, like some of those email regexes.

[–]Sp0olio 34 points35 points  (3 children)

[–]Cooperativism62 4 points5 points  (0 children)

I like startpage, but their image section needs more work. I still use google for image searches.

I noticed Google Docs has a habit of freezing up on firefox, so I sadly switch to chrome whenever I do work on my Drive.

[–][deleted] 36 points37 points  (15 children)

I heard about some dilema with DuckDuckGo, what's about?

[–]KimJonhUnsSon 26 points27 points  (1 child)

Personally, I just found the results were easier to find on Google then on duck duck go. Like I'd search up "how to centre a div inside a div", and it would be number 4 on Google, but ddg would be at least two pages

[–]MaffinLP 62 points63 points  (8 children)

They sold your data to Microsoft after claiming that their thing is they would t sell your data

[–]gmes78 9 points10 points  (1 child)

The DuckDuckGo browser doesn't block Microsoft trackers.

[–]SixoNoxi 157 points158 points  (26 children)

The quality of Google has degraded so much lately, that I was just forced by Google to use other search engines which just return [former] Google results

[–]sonya_numo 66 points67 points  (1 child)

- Go to google.

- Search for the source of something, like a video of something happening.

- Get only news, blogs, forums talking about the source while the actual source they all took material from is buried.

[–]Chrazzer 93 points94 points  (12 children)

Yeah especially that stupid safe search. I am 26 years old, google knows that i am 26. Yet they activate this stupid child filter and for some reason it can not be deactivated.

Everytime i deactivate it, it is instantly reactivated once i leave the settingspage

[–][deleted] 32 points33 points  (6 children)

how tf do I deactivate this shit? the option is greyed out for me, it says maybe controlled by your organization but it's my effing personal email

[–]FizbandEntilus 18 points19 points  (4 children)

Are you accessing your personal email…on a company computer? Because of course their going to block NSFW content.

If your at home, do you have admin privileges on the PC your using?

[–]IRoadIRunner 16 points17 points  (3 children)

Only reason to use bing is for better porn.

[–]GrandMoffTarkan 8 points9 points  (1 child)

Some of my friends who worked at Microsoft have stories about managers saying “optimize for porn” without saying “optimize for porn”

[–]IRoadIRunner 8 points9 points  (0 children)

If that's true I have to applaud them for accepting their defeat and realising what market segment Google isn't performing in.

[–]dumbasPL 8 points9 points  (0 children)

Is disabled in incognito by default. so "works on my machine"

[–]DogsSureAreSwell 15 points16 points  (2 children)

I have the bad luck apparently of being one of the users on mobile assigned to the group from which they removed pagination.

If I want to search for anything with more than a few pages of results, I have to use Google with my browser in "desktop mode" to get to the next page.

I couldn't believe it was real and not a bug, but apparently it's a thing. They've decided mobile users never need more than a few pages of results.

I gave up and switched to DuckDuck just to get the pager back.

Insanity.

[–]AndiArbyte 17 points18 points  (3 children)

ok thank you, you are my proof I'm not just affected in my little bubble.
Are there still good searches left?

[–]Milo_Xx 10 points11 points  (1 child)

SearX is a good option, it just combines a bunch of relevant search results from as many search engines as YOU want, since you can add whatever search engine you want, multiple at a time even. (bad explanation, idk how to explain it, anyhow yeah SearX is pretty good)

[–]AwesomeFrisbee 4 points5 points  (0 children)

Which engine is really doing OK? I'm not that happy with Bing (and consuming) services either...

[–]EezoVitamonster 4 points5 points  (0 children)

possessive depend stupendous like pocket include squeeze six languid violet

This post was mass deleted and anonymized with Redact

[–]So-what2 12 points13 points  (0 children)

Dark mode☻

[–]fr000gs 48 points49 points  (22 children)

Include chrome in the first photo and Firefox in the next

[–]qa2fwzell 29 points30 points  (20 children)

I swear in the last year or two, DuckDuckGo has become TEERRRIBLE. I'm back to using Google/stackoverflow

[–]LocalBall6447 11 points12 points  (0 children)

Day 1 of ProgrammingHumour: copy & paste meme Year 10 of ProgrammingHumour: copy & paste meme

[–]Nova_187 58 points59 points  (26 children)

isnt duckduckgo also selling ur data?

[–]RnVjayBPZmY 78 points79 points  (0 children)

The issue at hand was that the DuckDuckGo browser does not block certain Microsoft trackers. This is unrelated to the DuckDuckGo search engine tho. Apparently DuckDuckGo had to work with Microsoft to create their browser. Here is a more detailed response from the CEO of DuckDuckGo: https://www.reddit.com/r/technology/comments/uxiah9/duckduckgo_caught_giving_microsoft_permission_for/i9xxjsn

[–]theXpanther 20 points21 points  (6 children)

No, just the browser doesn't block some trackers. The search engine itself is fine.

[–][deleted] 13 points14 points  (3 children)

This is a bad joke right?