I have a string (())(("I am) a(. text"(((( I need to break it down to three parts:  The first group should include anything that is not a \w or \d or " or '. BUT ALSO should be at the start of the string.  The second group should be literally any characters before group 3  The third group should be as the first group but AT THE END of the string  So the groups of the string above should look like this:  1. (())((  2. "I am) a(. text"  3. ((((  I have tried to do it like this: ^([^\w\d'\"]*)(.+)([^\w\d'\"]*)$ But the thing is (.+) just eates everything...  I understand that my regex is wrong, but I have no idea how to do what I want to do
I have this gigantic ugly string: J0000000: Transaction A0001401 started on 8/22/2008 9:49:29 AM J0000010: Project name: E:\foo.pf J0000011: Job name: MBiek Direct Mail Test J0000020: Document 1 - Completed successfully  I'm trying to extract pieces from it using regex. In this case, I want to grab everything after Project Name up to the part where it says J0000011: (the 11 is going to be a different number every time). Here's the regex I've been playing with: Project name:\s+(.*)\s+J[0-9]{7}:  The problem is that it doesn't stop until it hits the J0000020: at the end. How do I make the regex stop at the first occurrence of J[0-9]{7}?
The standard titlepage is quite simple. I am looking for a very  and need help customizing my title page.  It should match the  classicthesis doctoral thesis template  Below a minimal working example:   \documentclass[12pt,a4paper,footinclude=true,twoside,headinclude=true]{scrbook} \XeTeXinputencoding iso-8859-1 \usepackage[marginparsep=8pt,left=3.5cm,right=3.5cm,top=3cm,bottom=3cm]{geometry}  \usepackage[parts,pdfspacing,dottedtoc]{classicthesis}    \frontmatter  \begin{document}     \pagestyle{scrheadings}        %this is the place to set up my cover sheet.       %*******************************************************      % Abstract     %*******************************************************    %\renewcommand{\abstractname}{Abstract}    \pdfbookmark[1]{Résumé}{Résumé}   \begingroup    \let\clearpage\relax    \let\cleardoublepage\relax    \let\cleardoublepage\relax       \chapter{Résumé}     Résumé de la thèse en français\dots      \vfill      \chapter*{Summary}   Résumé de la thèse en anglais\dots    \endgroup             \vfill     \end{document} How can I determine if a C++ object has been deallocated? Proving the measure of an increasing sequence of measurable sets is the limit of the measures Pairs of numbers with a given LCM Can "Thanks for your edit!" banner be linkified with the Suggested Edit Link? How do we define capillary number in 2D (two dimensions) In 3D the capillary number $Ca$ is defined as: $$Ca=\frac{\nu \rho U}{\gamma}$$ where $\nu$ is the kinematic viscosity ($m^2/s$), $U$ is the velocity ($m/s$)and $\gamma$ is the interfacial tension ($N/m$) and $\rho$ is the density in $kg/m^3$ . However in 2D I will have $\rho$ in units of $kg/m^2$ (2D simulation), so how to find capillary number? The derivation of the Hamilton-Jacobi equation using canonical transformations is typically done involving a type-2 generating function.  Is it possible to use a another type of generating function, namely type 1, 3 or 4? I checked the Wikipedia article and some interviews, and haven't found any specific answer.  What specifically does the "awakening" of the Force in the title refer to?  Was the Force somehow asleep or dormant? (which would, since it Binds The Galaxy Together, explain the Inflationary cosmological models).  Or that there were no active Force users since Vader and Sidious offed every Jedi and then each other? We know Luke's still around.  Or something else?  Canon or word-of-god answers only, please. The latex file coding is not there but the pdf file is there I wrote all my coding in the .tex file. The next day when I opened it the coding is all gone and the pdf file is opening with it and is displayed as an output. How do I bring back my coding? Prove that all cyclic groups of the same order are isomorphic I want to prove that 2 cyclic groups of the same order are always isomorph. So, let $G,H$ be cyclic groups with $|G| = |H|$. Then: I suspect the isomorphism would be the one that maps a generator g to a generator h. Thus, consider this function:  $f: G \rightarrow H$ defined by $f(g^k) = h^k$. I already showed that this mapping is surjective and a homomorphism, but I get stuck at the injectivity part. Can someone give a hint (my attempts: I tried to deduce whether the kernel is $e_G$ and I also used the definition of injectivity but I got stuck in both approaches)? Need help in the longtable with the figure Sum of reciprocals of numbers with certain terms omitted I know that the harmonic series $1 + \frac12 + \frac13 + \frac14 + \cdots$ diverges. I also know that the sum of the inverse of prime numbers $\frac12 + \frac13 + \frac15 + \frac17 + \frac1{11} + \cdots$ diverges too, even if really slowly since it's $O(\log \log n)$.  But I think I read that if we consider the numbers whose decimal representation does not have a certain digit (say, 7) and sum the inverse of these numbers, the sum is finite (usually between 19 and 20, it depends from the missing digit). Does anybody know the result, and some way to prove that the sum is finite? I need the cs_CZ.ISO8859-2 locale to exist on Ubuntu 12.04 so a specific unit test can pass. The test makes the following call:  std::locale("cs_CZ.ISO8859-2")   On my OS X Lion install, this locale does exist, so the call to std::locale should work:  $ locale -a | grep cs cs_CZ cs_CZ.ISO8859-2 cs_CZ.UTF-8 $   However, on my Ubuntu 12.04 install, there is only a UTF8 variant, and no ISO8859-2 version of the cs_CZ locale, despite having installed language-pack-cs:  $ dpkg -l | grep language-pack-cs ii  language-pack-cs                       1:12.04+20120417                        translation updates for language Czech ii  language-pack-cs-base                  1:12.04+20120417                        translations for language Czech $ locale -a | grep cs_ cs_CZ.utf8 $   The unit test fails on this machine. Running the unit test under strace shows that it really is looking for the ISO8859-2 variant and not finding it anywhere:  open("/usr/lib/locale/cs_CZ.ISO8859-2/LC_CTYPE", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) open("/usr/lib/locale/cs_CZ.iso88592/LC_CTYPE", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) open("/usr/lib/locale/cs_CZ/LC_CTYPE", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) open("/usr/lib/locale/cs.ISO8859-2/LC_CTYPE", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) open("/usr/lib/locale/cs.iso88592/LC_CTYPE", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) open("/usr/lib/locale/cs/LC_CTYPE", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) open("/usr/share/locale-langpack/cs_CZ.ISO8859-2/LC_CTYPE", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) open("/usr/share/locale-langpack/cs_CZ.iso88592/LC_CTYPE", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) open("/usr/share/locale-langpack/cs_CZ/LC_CTYPE", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) open("/usr/share/locale-langpack/cs.ISO8859-2/LC_CTYPE", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) open("/usr/share/locale-langpack/cs.iso88592/LC_CTYPE", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) open("/usr/share/locale-langpack/cs/LC_CTYPE", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)   I know absolutely nothing about locales, i18n, etc. However, I would like to get this test passing, and changing the test is not an option. If anyone can offer any insight into how to make this locale exist on Ubuntu 12.04 I would appreciate it greatly. Is there a fast way (without looping over all edges/faces/verts) using ops.mesh or bmesh to get the lists of indices associated with mesh islands as shown below? These islands are part of one mesh but are disjoint from each other.    I know how to select the boundaries by running the operator Select boundary Loop or calling bpy.ops.mesh.region_to_loop() but can't find any API calls to return the vert/edge/face indices associated with the individual islands. Are the tags shown in a particular order? "Software Updater" & "Software & Updates" not working I havent used my Ubuntu for quite a long time.  Today, when I booted Ubuntu (14.04 LTS), the software updater and Software &amp; Updates (from Settings) are not working.  The software updater's window will show up for around 1 sec, but it will close automatically. Software &amp; Updates is never shown, no matter how many times I click the icon. Note that neither of them show any error message.  Those 2 features were working perfectly the last time I used Ubuntu. I want to do some system upgrade and update.  For now, I use sudo apt-get update &amp;&amp; sudo apt-get upgrade. This command runs very fast, meaning (I think) my Ubuntu is not updated properly. The update from software updater always has a big size hence the download should be slower.  What should I do?   Can I just uninstall and reinstall both of them? If I can, how to do it?  Just to clarify, I don't want to upgrade my Ubuntu version (I want the LTS one), I just want to upgrade the software/packages I used.  Thanks for your time. If sup A $\lt$ sup B show that an element of $B$ is an upper bound of $A$ (a) If sup A &lt; sup B, show that there exists an element of $b \in B$ that is an upper bound for $A$.  I have argued that if sup A $\lt$ sup B, then choose an $\epsilon&gt;0$ such that sup A +$\epsilon \in B$. Since $a \le $ sup A for all $a \in A$, it follows $a \lt $ sup A + $\epsilon$ hence sup A + $\epsilon $ is an upper bound of A as well as an element of B.  (b) Give an example to show that this is not always the case if we only assume sup A $\le$ sup B.  I am having trouble extending my argument into an example which makes me think that it may not be correct.   Question: Is my argument for (a) correct? If not how would one show this fact? Can you give an example asked for in (b)? Thanks in advance.  I need to understand how I am assuming what I am supposed to prove in my approach. Can someone elaborate on that please? The other question doesn't really address this issue. If $G$ is a group, show that $x^2ax=a^{-1}$ has a solution if and only if $a$ is a cube in $G$ I have modeled a simple pocket watch in Blender. Every time I import it into Unity3D, regardless of whether I export it from Blender as an FBX or 3ds file, it always comes out missing faces! Why is this happening? I have never had problems importing models into Unity3D like this before.  Blender Screenshot    Unity Screenshots     It seems to me that different faces appear when I rotate it differently. How can I prevent this? Thanks! Best way to parse command line arguments in C#? When building console applications that take parameters, you can use the arguments passed to Main(string[] args).   In the past I've simply indexed/looped that array and done a few regular expressions to extract the values. However, when the commands get more complicated, the parsing can get pretty ugly.    So I'm interested in:   Libraries that you use Patterns that you use   Assume the commands always adhere to common standards such as .