I have a string (essentially an abbreviation - e.g. USA, with all letters in capitals) and a list of texts. I want to select those texts containing all the letters in the string (case-sensitive match). For example,  string = "USA"  texts = ["United States of America", "United States", "United States of America and Iraq"]  #Result shoud be:  results = ["United States of America", "United States of America and Iraq"]   I have tried with (?=U)(?=S)(?=A) (which is what the answers to the duplicate question suggests) but this doesn't seem to work as the regex expects the letters to be occurring in exact sequence. Also, I do not want to check small letters and spaces following each of the Capitals i.e., [?=U]([a-zA-Z]*[\s]+)*[?=S]([a-zA-Z]*[\s]+)*[?=A][a-zA-Z]* as these would be simply redundant (while not working perfectly).  What I am looking is to try with an expression equivalent to [USA] - which instead performs an OR operation to select texts containing at least one letter of the string. Is there any expression as elegant to carry out an 'AND' operation in regex?
Obviously, you can use the | (pipe?) to represent OR, but is there a way to represent AND as well?  Specifically, I'd like to match paragraphs of text that contain ALL of a certain phrase, but in no particular order.
Painter's Servant vs Emrakul What happens in the following situation?  My opponents got the  and  lock going on but I have a  in my deck that keeps me shuffling my graveyard back into my deck when it gets milled.  DO I just keep on shuffling untill the 45 minutes is up and the games end in a draw? How is this situation resolved? In this case I'm filtering by the tag [tag:css*], but it's showing this as [css*] and showing the  tag's exerpt. Manually hacking tables in LaTeX is one of the less funny things when preparing a document. Naturally, there are quite a few tools that promise to simplify this. In fact, I have somewhat lost track of all the tools available, and I'd like to gather your valuable experience into one big post. Some of the tools are mentioned in , but I feel there's much more around.  I'd suggest that somebody starts an overview with an alphabetic list (so that I can accept this answer and it stays on top), and that everyone replies with a "community wiki" entry, one reply per tool, and inserts the tool into the list.  Personally, I use Excel2LaTeX, but I'm unhappy with having to fire up Windows in order to generate the LaTeX code. I'm thinking of a rewrite as a standalone Python tool using the xlrd library, but I'm not too inclined to reinvent the wheel. Possibilities for Python classes organized across files? I'm used to the Java model where you can have one public class per file.  Python doesn't have this restriction, and I'm wondering what's the best practice for organizing classes. How to install JSTL? The absolute uri: http://java.sun.com/jstl/core cannot be resolved Can a single player build a clan dojo? Is it possible for an one-or-two-person clan to build a dojo? If so, what are the resources involved?   I'd like to experience the whole Dojo building experience so I don't plan to join an existing Clan with a dojo already. I have noticed that such terms as model hyperparameter and model parameter have been used interchangeably on the web without prior clarification. I think this is incorrect and needs explanation. Consider a machine learning model, an SVM/NN/NB based classificator or image recognizer, just anything that first springs to mind.   What are the hyperparameters and parameters of the model? Give your examples please. Does the full quarantine period have to be observed for short trips of less than 14 days to England? I am planning to go to England for 2 days in preparation of moving (I already have a place rented and would be staying there) a few weeks later. I am coming from a country where I would need to do a 14 day quarantine as soon as I enter England. Does this mean that I have to stay in England for 14 days or can I leave the country before the end of the 14 day quarantine without facing a penatly? I have found no information about what the rules are for planned stays of less than 14 days on the , while  seems to say that short trips are OK. Official sources would be appreciated. LM317 Heat sink, how big? I would like to understand a couple of fact on maximum likelihood estimators (MLEs) for logistic regressions.   Is it true that, in general, the MLE for logistic regression is biased? I would say "yes". I know, for example, that sample dimension is related to the asymptotic bias of MLEs.   Do you know any elementary examples of this phenomenon? If the MLE is biased, is it true that the covariance matrix of the MLEs is the inverse of the Hessian of the maximum likelihood function?   edit: I have met this formula quite often and without any proof; it seems a quite arbitrary choice to me. Complex zeros of the polynomials $\sum_{k=0}^{n} z^k/k!$, inside balls this is a question from a Temple prelim exam, and i'm trapped in it! We have $p_n(z)=\sum_{k=0}^n\frac{z^k}{k!}$ and we have to prove that $\forall r&gt;0 \quad \exists N\in\mathbb{N}$ s.t. $p_n(z)$ has no zeros in $B_r(0)$ for $n&gt;N$.  I tried to use Rouche's theorem observing that $1+\frac{z^n}{n!}$ has the nth roots of $n!$ as complex zeros, which are outside a fixed ball for n sufficiently large, but i'm having trouble proving that $|1+\frac{z^n}{n!}|&gt;|z+\cdots+\frac{z^{n-1}}{(n-1)!}|$ in $|z|=r$ (if this is true). If anyone could help.. How to generate a 2D array data structure in tikz? I need to illustrate a 2D array data structure in my document. This is a picture I found on the internet. I want something similar.    I also want to show the memory layout in the illustration. Something like this:   Can someone help me with drawing them in Tikz? Thanks in advance.  MWE  \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{tikz} \usetikzlibrary{matrix,backgrounds}  \begin{document} \begin{tikzpicture}[font=\ttfamily, array/.style={matrix of nodes,nodes={draw, minimum size=7mm, fill=green!30},column sep=-\pgflinewidth, row sep=0.5mm, nodes in empty cells, row 1/.style={nodes={draw=none, fill=none, minimum size=5mm}}, row 1 column 1/.style={nodes={draw}}}]  \matrix[array] (array) { 0 &amp; 1 &amp; 2 &amp; 3 &amp; 4 &amp; 5 &amp; 6 &amp; 7 &amp; 8 &amp; 9\\   &amp;   &amp;   &amp;   &amp;   &amp;   &amp;   &amp;   &amp;   &amp;  \\}; \node[draw, fill=gray, minimum size=4mm] at (array-2-9) (box) {};  \begin{scope}[on background layer] \fill[green!10] (array-1-1.north west) rectangle (array-1-10.south east); \end{scope}  \draw (array-1-1.north)--++(90:3mm) node [above] (first) {First index}; \draw (array-1-10.east)--++(0:3mm) node [right]{Indices}; \node [align=center, anchor=south] at (array-2-9.north west|-first.south) (8) {Element\\ (at index 8)}; \draw (8)--(box); % \end{tikzpicture} \\ \begin{tikzpicture}[font=\ttfamily, array/.style={matrix of nodes,nodes={draw, minimum size=7mm, fill=red!30},column sep=-\pgflinewidth, row sep=0.5mm, nodes in empty cells, row 1/.style={nodes={draw=none, fill=none, minimum size=5mm}}, row 1 column 1/.style={nodes={draw}}}]  \matrix[array] (array) {  &amp;  &amp;  &amp;  &amp;  &amp;  &amp;  &amp;  &amp;  &amp; \\  &amp;   &amp;   &amp;   &amp;   &amp;   &amp;   &amp;   &amp;   &amp;  \\}; % \end{tikzpicture} \\ \begin{tikzpicture}[font=\ttfamily, array/.style={matrix of nodes,nodes={draw, minimum size=7mm, fill=blue!30},column sep=-\pgflinewidth, row sep=0.5mm, nodes in empty cells, row 1/.style={nodes={draw=none, fill=none, minimum size=5mm}}, row 1 column 1/.style={nodes={draw}}}]  \matrix[array] (array) {  &amp;  &amp;  &amp;  &amp;  &amp;  &amp;  &amp;  &amp;  &amp; \\  &amp;   &amp;   &amp;   &amp;   &amp;   &amp;   &amp;   &amp;   &amp;  \\}; % \end{tikzpicture} \end{document} Pros & cons of buying gold directly vs. investing in a gold ETF like GLD, IAU, SGOL? I've got a generic dictionary Dictionary&lt;string, T&gt; that I would like to essentially make a Clone() of ..any suggestions. Getting "Authentication is required" when trying to access the Play Store Over the past week, whenever I try  to open the Play Store/Market app on my phone, the app thinks for a while and then displays this error message:     Authentication is required. You need to sign into your Google Account.   But I am indeed signed into my Google account, as seen in other Google applications running on the phone, and as seen if I open the menu in the Market app and click the "Accounts" button.  I suspect this might be related to the fact that over the past few months I've had two different Google accounts synced to this device, and I have recently removed one of them from the phone. No other Google application has had any problems with removing one account.  Does anyone know how I can solve this issue? I can still install applications by using the market website (now "Google Play"), but this is still a big inconvenience. I also think I stopped getting updates. Show the number of up-votes and down-votes on the mobile site theme executing web service using postman SEO and URL Shorteners Why do Windows 10 foreground apps mysteriously launch as background processes? Probability expected value football problem The number of injuries at a college football game has the following probability distribution:      $$\begin{array}{|l:l|} \hline \textrm{Number of injuries} &amp; 0 &amp; 1 &amp; 2 &amp; 3 &amp; 4 &amp; 5 \\ \hdashline \textrm{Probability} &amp; 0.14 &amp; 0.33 &amp; 0.23 &amp; 0.17 &amp; 0.09 &amp; 0.04 \\ \hline \end{array}$$      The coach must file a report whenever there is more than one injury in any game.      a. Calculate the expected number of reports filed in the next 20 games.      b. Calculate the standard deviation of the number of reports filed in the next 20 games.      c. Calculate the expected number of football games to be played before the first game in which there are at least four injuries.