Confusion with RegEx Below is a string variable and my regular expression, it's partially working but it's deleting everything after and I would like to just remove that one property for example...    tString='#a5af3c17e39f06875fbe9153d2d66d552{animation-delay: 0s; animation-direction: normal; animation-duration: 0s; animation-fill-mode: none; animation-iteration-count: 1; animation-name: none; animation-play-state: running; animation-timing-function: ease; background-attachment: scroll; background-blend-mode: normal; background-clip: border-box; background-color: rgba(0, 0, 0, 0.498039); background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; border-bottom-color: rgb(39, 48, 57); border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-bottom-style: none; border-bottom-width: 0px; border-collapse: separate; border-image-outset: 0px; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; border-left-color: rgb(39, 48, 57); border-left-style: none; border-left-width: 0px; border-right-color: rgb(39, 48, 57); border-right-style: none; border-right-width: 0px; border-top-color: rgb(39, 48, 57); border-top-left-radius: 0px; border-top-right-radius: 0px; border-top-style: none; border-top-width: 0px; bottom: 0px; box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 20px 0px; box-sizing: border-box; break-after: auto; break-before: auto; break-inside: auto; caption-side: top; clear: none; clip: auto; color: rgb(39, 48, 57); content: ; cursor: auto; direction: ltr; display: block; empty-cells: show; float: none; font-family: Roboto, sans-serif; font-kerning: auto; font-size: 18px; font-stretch: normal; font-style: normal; font-variant: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-variant-numeric: normal; font-weight: normal; height: 1110px; image-rendering: auto; isolation: auto; left: 0px; letter-spacing: normal; line-height: 32.4px; list-style-image: none; list-style-position: outside; list-style-type: disc; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; max-height: none; max-width: none; min-height: 0px; min-width: 0px; mix-blend-mode: normal; object-fit: fill; object-position: 50% 50%; offset-distance: 0px; offset-path: none; offset-rotation: auto 0deg; opacity: 1; orphans: 2;}'  regStr=/animation-direction:.* ;/gm  result=tString.replace(regStr,'')  console.log(result);
My regex is matching too much. How do I make it stop? 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}?
Low Quality Posts you Have Already Flagged I just discovered that it is possible to get a post in the Low Quality Posts review queue that you have already flagged for closing, making reviewing that item impossible. Obviously, I don't want to 'Looks Good' something that I know should be closed, but at the same time I cannot 'Recommend Close' something I have already flagged leaving the only option being to skip the post.  Can the queue be changed so that it does not show posts which you have already flagged? How can I solve the following sequence Let we have the following sequence  $$y_n= \frac{1}{\sqrt{n^2+1}}+\frac{1}{\sqrt{n^2+2}}+\cdots+\frac{1}{\  \sqrt{n^2+n}}$$ find the limit of the sequence $y_n$ decide whether it is increasing or decreasing How can I refinance or get out of a car loan I am upside down on? I purchased a car a little over 1 year ago a 2012 Dodge Avenger and recently went to get it refinanced and found out that because I'm so upside down that I can't get it refinanced I still owe over 15,000 and the car is only worth about 8000. I'm so bothered by this a few days ago I received a pre-approval letter from capital one bank for 35,000 so how can I go about doing this if I trade the car in I will have to put down a substantial amount of money in order to get out of this car. Can I just get the other car and turn the other one in. What should I do Must one have a knowledge of fine art to be a Graphic Designer? Should all Graphic Designers know how to draw? So I understand that Euclidean distance is valid for all of properties for a metric. But why doesn't the square hold the same way? Manganese has more unpaired electrons than Iron so why is Iron ferromagnetic Manganese paramagnetic? Manganese has five unpaired electrons, but Iron has four, then why is Iron ferromagnetic and Manganese paramagnetic? What's that property I'm missing? How can I set Excel to always import all columns of CSV files as Text? Though I try to avoid it, I occasionally have to open a CSV file in Excel. When I do, it formats columns containing numbers, which makes them useless for my purposes. As far as I can tell, the only way to prevent this from happening on import is to rename the file so the extension isn't .csv and use the import wizard to specify the format of each column individually. For files with 50-60 columns, this is impractical.  Since every answer for this oft-asked question on the internet suggests either some means of converting the formatted numbers back once the file is open (which won't work for me - I want to solve the general problem, not a few specific cases) or manually selecting the format type of each column (which I don't want to do), I'm looking for a way to set a global preference or style such that all columns of all CSV files opened are always formatted as text.  I know about "armoring" the numbers with quotes, too, but the files I get don't come like that and I was hoping to avoid having to pre-process the files so Excel doesn't screw them up.  Is there a way to do specifically this: Always format all columns in opened CSV files as text, without manually selecting each column every time during import?  I'm using Excel 2003, but I'll take answers for 2007 if that's what you know. Has Stack Overflow been haiku-hacked? Switching from one area of graduate study to another? Is it possible to switch from one area of graduate study to another in US universities? For example, suppose someone has enrolled in a computer science phd program. Can he switch over to math(or physics) phd program in the same school later?(or say from applied mathematics to pure mathematics?)  What are the steps for doing for doing that? 301 redirect instead of 404 when URL is a prefix of a post or page name? hey all! i have an odd problem with URL routing. when i request a URL that doesn't exist, e.g. , wordpress correctly returns a 404. however, if that URL is a prefix of a post or page name, it instead returns a 301 redirect to the post or page.  for example, if i have a post on 10/1/2010 named Food Post, it will return a 301 with Location:  (my permalink structure). likewise, if i have a page named Food Page, it will return a 301 with Location: .  you can see this in action on my live site,  . e.g.  redirects to  .  turning off permalinks (ie switching to "default") fixes it, for both posts and pages, but naturally i don't really want to do that.  i see this on three different installations, all wordpress 3.0.1 and apache 2.2, two ubuntu lucid/mysql 5.1 and one freebsd 7.3/mysql 5.0. i've deactivated all plugins and removed everything from my .htaccess except the lines for wordpress below, verbatim, but no luck.  RewriteEngine On RewriteBase / RewriteRule ^wordpress/index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /wordpress/index.php [L]   thanks in advance... How to export data with tab delimiters using Apex Data Loader? The internet vaguely says that this is possible. I need this feature to export translation values from a custom object and then import this back into Salesforce using translation workbench. Translation workbench accepts:   Field delimiter: Tab Character delimiter: None   How can we achieve a tab delimited data export from a custom object using Apex Data Loader? Common lines between two files $E(|X-Y|)$ for $X$, $Y$ i.i.d and uniform on $[0,1]$ What is $E|X-Y|$ when $X$, $Y$ are i.i.d and uniform on $[0,1]$?   I want to do something like   $$ E(|X-Y|)=\iint_{x&gt;y}(x-y)\;dxdy+\iint_{y&gt;x}(y-x)\;dxdy=2\iint_{x&gt;y} (x-y)\;dxdy $$  But am not sure how to solve that last double integral or if this setup is right. Stack Overflow, Stack Exchange, Area 51: What's the difference in a nutshell? Stack Overflow, Stack Exchange, Area 51: What's the difference in a nutshell? I've read the faq's and they all seem to be the same to me - Just Q &amp; A on a variety of topics.  What's the difference in a nutshell? If I have a software engineering question, which site is best for me to use? Stateful bash function sudo echo "something" >> /etc/privilegedFile doesn't work This is a pretty simple question, at least it seems like it should be, about sudo permissions in Linux.  There are a lot of times when I just want to append something to /etc/hosts or a similar file but end up not being able to because both &gt; and &gt;&gt; are not allowed, even with root.  Is there someway to make this work without having to su or sudo su into root? Getting coordinates by clicking on QGIS Canvas with PyQGIS? Are there any procedures when working with QgsMapCanvas (pyqgis, qgis) in order to obtain a pair of coordinates by clicking on the map canvas?   Are there any sample Python codes that demonstrate this? LCM is associative: $\ \text{lcm}(\text{lcm}(a,b),c)=\text{lcm}(a,\text{lcm}(b,c))$ Definition: The least common multiple of $a.b\in\Bbb{Z}$ is the smallest  $k\in\Bbb{N}$ that is divisible by both a and b.         Proposition: $\text{lcm}(\text{lcm}(a,b),c)=\text{lcm}(a,\text{lcm}(b,c))\tag{2}$    Proof: We want to show $\text{lcm}(\text{lcm}(a,b),c)\mid\text{lcm}(a,\text{lcm}(b,c))$ and $\text{lcm}(a,\text{lcm}(b,c))\mid \text{lcm}(\text{lcm}(a,b),c)$ such that $\text{lcm}(\text{lcm}(a,b),c)=\text{lcm}(a,\text{lcm}(b,c))$.  Let $k=\text{lcm}(\text{lcm}(a,b),c)$, then $c\mid k$ and $\text{lcm}(a,b)\mid k$, but if we let $l=\text{lcm}(a,b)$, then $a\mid l\,\,\text{and}\,\, b\mid l$. Therefore $c\mid k\,\,,a\mid k\,\,\text{and}\,\, b\mid k$, but then $\text{lcm}(b,c)\mid k$. Thus $\text{lcm}(a,\text{lcm}(b,c))\mid k$      Question: Does this makes sense, ifso can I do the same for $\text{lcm}(\text{lcm}(a,b),c)\mid \text{lcm}(a,\text{lcm}(b,c))$? I'm looking for a closed-form expression (in terms of $n$), that will give the sequence  $$ (s_n) = \left( \frac{3}{10}, \, \frac{3}{10} + \frac{33}{100}, \, \frac{3}{10} + \frac{33}{100} + \frac{333}{1000}, \dots \right). $$  Can anyone think of one? I made a related post to this question several minutes ago but I realized I was interpreting the sequence wrong. DES Initialization Vector in C#