I am trying to do a general Assert.AreEqual call on some details in a table header, however I am struggling figuring out how to successfully format the expected results. The return value on the GetTableHeader call is as follows:  "× •••\r\nAcme Health Fund\r\nBalance Date: 9/27/2017"   I ONLY want to assert that the Acme Health Fund text is present. My current call is this:  Assert.AreEqual("/.*Acme Health Fund.*/" , GetTableHeader() );   How can I format my first parameter in the AreEqual call to ONLY expect "Acme Health Fund"?
For example, this regex  (.*)&lt;FooBar&gt;   will match:  abcde&lt;FooBar&gt;   But how do I get it to match across multiple lines?  abcde fghij&lt;FooBar&gt;
How can I use function's parameter in it? A well-supported wireless PCI adapter for Ubuntu 12.04? Beamer, Babel and Tikz conflict What is a rocket engine thrusting against in space? I know Newton's third law of motion might be the answer for this but still I am wondering how the rockets could thrust in the empty space and move in the opposite direction. I guess an astronaut wouldn't be able to push in the empty space with his hands or legs to move himself, but with a rocket engine it's possible. How? What might be the explanation for this in General Relativity? I'm using LyX on Linux Mint 14 ...  Using BibTeX with the apalike style and some modifications in the preamble, I've managed to get the bibliography as it should be except for one thing. When I cite a work with multiple authors it gets printed with the separator "and" which isn't correct for my language (Danish). Curiously it's displayed correctly in the user interface of Lyx - for example "(Wittgenstein og Waismann 2003 - which led me to believe everything was ok but in the pdf the separator "and" is used both in the reference and in the bibliography.  Is there any way to fix this using BibTeX, or can it only be done with biber 1.5, as suggested in the last comment here:   I really hope their is because getting biber to work using the following guide has thus far proven to be impossible:   Help much appreciated ... I really hope I won't have to relapse into setting my master thesis up in LibreOffice. Toast message with Chinese characters, is it a virus? I recently received some updates today from the Play Store. Every so often a pop notification, one of those bubble ones at the bottom of the screen with Chinese characters.  The most recent update I've noticed is the ES File Explorer. I wouldn't mind, but my device is rooted and so I am at risk. I have a screenshot of the notification.  My device is the Samsung Galaxy Tab A 9.7 and I have stock ROM installed.    What my question(s) are: Do I have a virus (it's not being picked up by Avast) and if I do, how do I remove it? Why don't the White Walkers take the sea route to Westeros After watching 6 seasons of Game of Thrones, we know that the only roadblock for White Walkers is "The Wall" to stop them from attacking Westeros. However, we see that King Stannis attacked wildlings through a ship route without crossing the Wall.  What is stopping the White Walkers from doing the same? They can ask wights to make Ships or rowboats. They have a lot of forests to get wood for making ships. They can simply land at the coast of the North and attack Winterfell or whatever they want. java.lang.ClassNotFoundException: org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuterFilter Splash Screen waiting until thread finishes I still have a problem with the splash screen. I don't want to use the property SC.TopMost=true.  Now my application scenario is as follows:  in progeram.cs:  [STAThread] static void Main() {     new SplashScreen(_tempAL);// where _tempAL is an arrayList     Application.Run(new Form1(_tempAL)); }   in SplashScreen class:  public SplashScreen(ArrayList _Data) {     DisplaySplash() }  private void DisplaySplash() {     this.Show();     this.TopMost = true;     this.CenterToScreen();     this.SetTopLevel(true);      _allServerNarrators = new string[10];     for (int i = 0; i &lt; _allServerNarrators.Length; i++)         _allServerNarrators[i] = null;      GetFromServer();      this.Hide();     _serverData = new ArrayList();     _thisData.Add(_allServerNarrators);     _thisData.Add(_serverNarrators);  } private void GetFromServer() {     _serverNarrators = new ArrayList();     string _file = "Suras.serverNar";      if (!Directory.Exists("c:\\ASGAQuraan"))         Directory.CreateDirectory("c:\\ASGAQuraan");      while (counter &lt; 4 &amp;&amp; _serverFiles == null)     {         if (Download("c:\\ASGAQuraan", _ftpServerIP, _file))         {             StreamReader _strReader = new StreamReader                          ("c:\\ASGAQuraan\\"+_file,System.Text.Encoding.Default);             string _line = _strReader.ReadLine();             string _word;              while (true)             {                 while (_line != null)                 {                     _word = _line.Substring(0, _line.IndexOf("*"));                     int _narId = Convert.ToInt32(_word);                     _line = _line.Substring(2);                     int k = 0;                     _serverNarratorNode = new ArrayList();                     while (true)                     {                         int ind = _line.IndexOf("*");                         if (ind &gt; 0 &amp;&amp; ind &lt; _line.Length)                         {                             string str = _line.Substring(0, (ind));                             if (k == 0)                             {                                 _allServerNarrators[_narId] = str;                                 _serverNarratorNode.Add(str);                             }                             else                             {                                 _serverNarratorNode.Add(str);                             }                             _line = _line.Substring(ind + 1);                             k++;                         }                         else                         {                             _line = null;                             break;                         }                     }                     _serverNarrators.Add(_serverNarratorNode);                     _serverFiles = "added";                 }                 _line = _strReader.ReadLine();                 if (_line == null)                 {                     break;                 }             }         }         else             counter++;     } }   What I want is something in the splash screen class which waits until the thread finishes.  For more details, please tell me what I need to tell you. Prime ideal and nilpotent elements I would like to remove selected commit log entries from a linear commit tree, so that the entries do not show in the commit log.  My commit tree looks something like:  R--A--B--C--D--E--HEAD   I would like to remove the B and C entries so that they do not show in the commit log, but changes from A to D should be preserved. Maybe by introducing a single commit, so that B and C become BC and the tree looks like.  R--A--BC--D--E--HEAD   Or, ideally, after A comes D directly. D' representing changes from A to B, B to C and C to D.  R--A--D'--E--HEAD   Is this possible? if yes, how?  This is a fairly new project so has no branches as of now, hence no merges as well. Start a longtable in Latex at top of next page I want to use the longtable environment for a table. However, I do not know how to place it at the top of the next page, as I can do with the table environment. Do you know how to do it? This is fairly easy.  If I go to https://webserver.com/someurl?a=b, will the someurl?a=b part be protected, or just the contents of the site? Duplicity Backup Browse Admin password of MariaDb doesn't seem to work Berlin Public Transport Ticket Validity I have purchased an AB zone Berlin 7 day transport ticket and validated it on Sunday 17th April so hopefully it will be valid until Sunday 24th.  I validated the ticket at about 10:00am so I guess 1000 is the time I validated? But what are the numbers 15 and 6 and letters 'So' correspond to? How (if checked by a guard) can they tell if the ticket is valid? And how can I as a customer tell when it is validated to? Why is the installer not showing any partitions? I'm having a problem installing Ubuntu, and Kali as well. I downloaded the iso from the official site &amp; tried installing using USB. I also tried desktop installation, but the problem is same.  It shows a single drive i.e. my total Hard Disk and if I select it, it asks me to create a new partition &amp; shows total space as FREE.  It's with all Ubuntu I downloaded, 11.10 Server, 12.10 and 13.04. I also tried to install BackTrack's new version Kali Linux but again I got the same problem.  I hope I meet thier system requirements. Here's my system details for your ease:   OS: Windows 7 Ultimate Processor: Intel P4 2.80 GHz RAM: 3GB Hard Disk: 320GB No of Local Drives: 4 (1 Primary, 3 Logical) Free Space: 195GB (about) Motherboard: G31 Cache: 1MB Help me, please. Here's an example question from the :     On the last day of a one-week sale, customers numbered 149 through 201 were waited on. How many customers were waited on that day?   Possible answers: 51, 52, 53, 152, 153.   The correct answer here is 53, which is the result of (201-149) + 1 = 53.  What's the reasoning in adding the +1? I'm trying to include a tabu inside a new definition of an environment but it fails if the postamble (enddef) of the new environment includes tabu's contents, so cells. With tabular or tabular* works. The error is:   ! Missing number, treated as zero. \tabu@0.H5   The MWE:  \documentclass{article} \usepackage{tabu} \newenvironment{testt} {\begin{tabu} to \textwidth{cccc}  11 &amp; 12 &amp; 13 &amp; 14 \\  21 &amp; 22 &amp; 23 &amp; 24 \\} {  41 &amp; 42 &amp; 43 &amp; 44 \end{tabu} }  \begin{document}  \begin{testt}  31 &amp; 32 &amp; 33 &amp; 34 \\ \end{testt} \end{document}   How to solve this? How to inline expand wildcard in bash? I remembered bash can do the following:  Suppose there are 3 files: a,b,c in the current directory, when I input:  $&gt; somecommand *   and then press a key or key combinations or a key sequence, the wildcard * online expanded as:  $&gt; somecommand a b c   but I cannot remember and cannot google out the key sequence! help!