Hey everyone, lets say that hypothetically I'm having trouble figuring out what .+ means in regex.
When I google search for "regex .+" with or without the quotes, I get results related to regex, but nothing related to .+
Google does this a lot; it strips out symbols because they have a different meaning for search engines, or it's easier to code for the google team, or whatever. But I need a search engine that is programmer-friendly.
I'm pretty sure there's a way to tell Google to take characters literally, but I don't know how. I'm pretty sure it was one of the first things I learned when I first got access to the internet at college years ago. I think I forgot how in the years between leaving college and first getting internet access at home.
I've tried lots of things over the past few years (such as escaping with a backslash "\.\+"), but nothing seems to have helped. I even tried rummaging through Google's other pages to see if I could find the info, but never seem to be able to navigate through Google's pages to get to the info I want.
However, whilst writing this post, I've realized I probably should have just asked Dave. I'd bet he'll know and I'm sure he'd welcome the opportunity to mock me for not knowing.
Verdagon, I see your point, it would be nice to search the whole web. Your question got me curious because I have tried this before, so I tried again on a few of the other major search engines with no success.
I know that many members of this forum would shun the notion of buying a book on their chosen subject, but if the manual isn't enough for you then a well-written book can provide you with all (or at least very nearly all) the information and examples you could want. Well-written, accurate, informative books are worth their weight in gold.
I know it doesn't solve the problem with Google in any direct sense, but I'd imagine you'd need Google for such problems less often. You'd probably come up with better solutions based on information from good books rather than an arbitrary selection of Web-pages, too.
Maybe Google treats special characters the way it does to mitigate some potential security problems?
SymbolHound is a programmer-friendly search engine. Unlike Google, it will not strip out the .+ , so you should be able to find reasonable results. Good luck, give it a shot and let us know how it works!