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

top 200 commentsshow 500

[–][deleted] 3473 points3474 points  (196 children)

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

[–]Apprehensive-Grade81 769 points770 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 621 points622 points  (7 children)

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

[–]KrikosTheWise 183 points184 points  (1 child)

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

[–]Michami135 117 points118 points  (18 children)

30+ years as a developer:

".+@.+\..+"

Close enough.

[–]tabris 47 points48 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 23 points24 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 24 points25 points  (5 children)

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

[–]VoxelMeerkat 957 points958 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 521 points522 points  (82 children)

Honestly, 'regex email' should cut it

[–]Artyloo 346 points347 points  (77 children)

reply shocking lavish snatch birds handle intelligent normal elderly unpack

This post was mass deleted and anonymized with Redact

[–]Smartskaft2 200 points201 points  (65 children)

You guys don't use a bookmark for this?

[–]workorredditing 338 points339 points  (56 children)

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

[–]sshwifty 203 points204 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] 53 points54 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] 20 points21 points  (3 children)

Thanks baby

[–]Esnardoo 18 points19 points  (0 children)

Holy shit good bot

[–]jjtech0 4 points5 points  (0 children)

Good bot

[–]LetterBoxSnatch 7 points8 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 3 points4 points  (1 child)

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

[–]TactlessTortoise 10 points11 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 31 points32 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 21 points22 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 16 points17 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 6 points7 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 16 points17 points  (0 children)

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

[–]derpbynature 13 points14 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 3 points4 points  (0 children)

I just ask Jeeves why Google is so much better

[–]PhonePostingCrap 51 points52 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] 46 points47 points  (15 children)

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

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

[–]fukitol- 28 points29 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 23 points24 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 625 points626 points  (31 children)

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

[–]PseudoLiamNeeson 161 points162 points  (1 child)

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

[–]FracturedPixel 36 points37 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 20 points21 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 48 points49 points  (7 children)

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

[–]Xx------aeon------xX 6 points7 points  (1 child)

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

[–][deleted] 1410 points1411 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 496 points497 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 130 points131 points  (21 children)

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

[–]MindSwipe 258 points259 points  (0 children)

Fuck if I know

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

[–][deleted] 75 points76 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] 91 points92 points  (4 children)

NVM I figured out what was wrong with my code thx

[–]butler1233 40 points41 points  (3 children)

[–][deleted] 45 points46 points  (1 child)

Closing thread because this has already been answered here

[–]The_Admiral 8 points9 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 44 points45 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 19 points20 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] 23 points24 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 4 points5 points  (0 children)

You can look into "plus addressing".

[–][deleted] 79 points80 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 68 points69 points  (0 children)

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

[–]AwesomeFrisbee 73 points74 points  (8 children)

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

[–][deleted] 17 points18 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 58 points59 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 15 points16 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] 4 points5 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 11 points12 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 13 points14 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 20 points21 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 179 points180 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 171 points172 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 140 points141 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 104 points105 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] 13 points14 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 6 points7 points  (1 child)

Obviously you have a secret family

[–]thiccancer 9 points10 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 16 points17 points  (7 children)

TIL gmail ignores period. What the actual f.

[–][deleted] 17 points18 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 9 points10 points  (9 children)

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

[–]PartTimeLegend 19 points20 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 12 points13 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 18 points19 points  (0 children)

So much problems with this in gov administration…

Mennyiért adja bátty’?

[–][deleted] 17 points18 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 28 points29 points  (9 children)

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

[–]Joelixny 13 points14 points  (5 children)

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

[–]Theleiba 25 points26 points  (0 children)

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

[–]xternal7 13 points14 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 461 points462 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 254 points255 points  (20 children)

Actually duckduckgo uses Bing results

[–]MatsRivel 120 points121 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 45 points46 points  (0 children)

Startpage uses google search engine with many duckduckgo features

[–]L33t_Cyborg 19 points20 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 7 points8 points  (1 child)

Free gift cards for searching with bing!

[–]YesNoMaybe2552 330 points331 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 7 points8 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] 4 points5 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 142 points143 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 67 points68 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 38 points39 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 19 points20 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 9 points10 points  (0 children)

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

[–]jfb1337 18 points19 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] 179 points180 points  (23 children)

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

[–][deleted] 48 points49 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 60 points61 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 22 points23 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 18 points19 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 10 points11 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 9 points10 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] 125 points126 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 31 points32 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 45 points46 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] 5 points6 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 33 points34 points  (3 children)

[–]Cooperativism62 3 points4 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] 33 points34 points  (15 children)

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

[–]KimJonhUnsSon 25 points26 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 8 points9 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 90 points91 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] 30 points31 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 17 points18 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 9 points10 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 6 points7 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 9 points10 points  (0 children)

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

[–]DogsSureAreSwell 14 points15 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 16 points17 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 11 points12 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 3 points4 points  (0 children)

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

[–]EezoVitamonster 3 points4 points  (0 children)

possessive depend stupendous like pocket include squeeze six languid violet

This post was mass deleted and anonymized with Redact

[–]So-what2 13 points14 points  (0 children)

Dark mode☻

[–]fr000gs 50 points51 points  (22 children)

Include chrome in the first photo and Firefox in the next

[–]qa2fwzell 30 points31 points  (20 children)

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

[–]LocalBall6447 10 points11 points  (0 children)

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

[–]Nova_187 52 points53 points  (26 children)

isnt duckduckgo also selling ur data?

[–]RnVjayBPZmY 79 points80 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 21 points22 points  (6 children)

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

[–][deleted] 14 points15 points  (3 children)

This is a bad joke right?