How to detect leading numberings in titles with a regex I am trying to detect if a sequence of text begins with a numbering, eg I), IV., a), C/, C. C -, C- etc with a regex.  I tried the following regex :   m = re.search(r'^(IX?{\s|-|-\s|,|,\s|\)|\)\s|.|.\s}|IV?{\s|-\s|-|\)|\)\s|.\s|.}|VI{0,3}?{\s|-|-\s|\)|\)\s|.|.\s})', "II - Informations supplementaires") m.group(0) &gt;&gt; 'I' m.group(1) &gt;&gt; 'I'   It only gives me 'I' as a result, I don't have "II", "II -", which are expected .... What is my error in the pattern ^^ ?
How do you match only valid roman numerals with a regular expression? Thinking about , i decided I can't even create a regular expression that will match roman numerals (let alone a context-free grammar that will generate them)  The problem is matching only valid roman numerals.  Eg, 990 is NOT "XM", it's "CMXC"  My problem in making the regex for this is that in order to allow or not allow certain characters, I need to look back. Let's take thousands and hundreds, for example.  I can allow M{0,2}C?M (to allow for 900, 1000, 1900, 2000, 2900 and 3000). However, If the match is on CM, I can't allow following characters to be C or D (because I'm already at 900).  How can I express this in a regex? If it's simply not expressible in a regex, is it expressible in a context-free grammar?
I am using Sql Server 2008 on Small Business Server 2003; client is using WinXP.   I added a user to my Active Directory Security Group; Why can't this user immediately access the database? It seems there is a delay before the user is recognized in Sql Server.   I am using AD Security Groups for permissions expressly so that I don't need to add individual users in Sql Server. So effectively I don't need to do anything but add the user to the AD Security Group in order to grant access.  But for some reason Sql Server doesn't immediately recognize the addition. I've seen this a number of times. I add the user to the group but that user can't access data until the next day. It seems that it doesn't query the Active Directory in real time. Can you confirm that is so?  What do I need to do so that Sql Server "refreshes" the list of users from Active Directory? Let $C[0,1]$ denote the ring of continuous functions on $[0,1]$. Consider the maximal ideal $M_a =\{ f\in C[0,1] | f(a)=0 \}$ for $a$ $\in$ $[0,1]$. Is $M_a$ finitely generated?   Note: It may seem that $M_a = \langle x-a\rangle$ which is certainly not true because $ \vert x-a \vert $ is in $M_a$ but not in $\langle x-a\rangle$. Any ideas for solving this question? Globally disable "include online search results" Windows 10 100% Disk Usage after Startup After startup for 5 minutes my system is very slow. The Task Manager shows that the disk usage is at 100%. (Later this number is around 2-4 %, but sometimes for 1-2 minutes go up again at 100%.)  I searched a lot on Google. For example I read , and also other pages. I opened two topic on Microsoft answer.  and one in Hungarian.  But I didn't found the solution yet. So I would like to ask Community's help. :)  Here the steps I already done:   I disabled everything at startups (including services) and the issue is the same.  I disabled Prefetch and Superfetch, the Baground Intellingent Transmission, Windows Search and Windows Defender but the issue is still persists. I made a health check on HDD, I made defrag and file system error check, but there are no errors. Also I tried to reinstall the HDD's driver. I made a full hardware check up, with no errors. The Windows and all the drivers are up-to-date. I tried a clean start. The issue is the same. I deleted Dropbox and all antivirus. I turned of the MSI mode.      I using also Linux, where this error is not occurs. Good to know, that Windows had 4 partitions, but I deleted 2 of them for the Linux. I don't know what partitions was these but both was only 10 - 20 MB.  I using a Dell Inspiron 15R SE 7520 with Windows 10 Home.  Personally I think it can be the Intel Rapid Store Technology "driver", because the problem started around when I installed it. (However I'm not sure.) And my hardware not supported yet by Intel, so I have no the newest driver. However I deleted Intel's software and driver and the issue is the same.    Thank you in advance for your assistance! Multiple (diamond) inheritance compiles without "virtual", but doesn't with Why didn't Thor lose his power? In Thor: Ragnarok, Valkyrie told Thor this about Hela:  Her power comes from Asgard the same as yours  Thor's plan was to unleash Surtur who destroys Asgard, which weakens Hela allowing Surtur to kill her. But why didn't that weakened Thor as well? We saw him later in Avengers: Infinity War very powerful. Call C++ library in C# I have a lot of libraries written in C++. I want to call these libraries from C#, however, I have met many problems. I want to know if there is a book or guideline to tell me how to do that. Adding dynamic graphics to an animation New phone: How to transfer game progress? $\operatorname{rank}(T^3) + \operatorname{rank}(T) \geq 2\operatorname{rank}(T^2)$ for finite-dimensional $V$ Consider a finite-dimensional vector space $V$ over the field $\mathbb{F}$ with a linear operator $T.$ Prove that we have $\operatorname{rank}(T^3) + \operatorname{rank}(T) \geq 2 \operatorname{rank}(T^2).$   First, let us assume that $\dim_{\mathbb{F}}(V) = n.$ Our immediate observations include that $T^3(V) \subseteq T^2(V) \subseteq T(V)$ so that $\operatorname{rank}(T^3) \leq \operatorname{rank}(T^2) \leq \operatorname{rank}(T)$ and $\operatorname{rank}(T^3) \geq \operatorname{rank}(T) + \operatorname{rank}(T^2) - n$ by Sylvester's Rank Inequality. Can we do some manipulations with what we have to get the desired inequality, or do we require something else? I'm trying to delete some folder but this error is preventing from doing it:     Cannot delete [FileName]: It is being used by another person or program.      Close any programs that might be using the file and try again.   How can I identify what application is using the file?   I want to end the application using a Task Manager, but I didn't know what application is using it.  The folder is not shared and my user account is an administrator. I'm trying to connect to another computer in my house via ssh. Both computers have ubuntu and openssh installed. When I run the command "ssh username@ip" on terminal I'm asked for the user's password I'm trying to connect to. I type it but I get this error "Permission denied, please try again." I'm sure the password is correct, then why can't I access? Following minimal document:  \documentclass{report}  \begin{document} \renewcommand*\thechapter{\Roman{chapter}} \tableofcontents \setcounter{chapter}{6} % Problem starts at chapter 7 \chapter{Seven} \chapter{Eight} \section{Eight-one} \section{Eight-two} \end{document}   yields this output (cut to size for your convenience):    Clearly, the chapter (and section) headings hang into the chapter (section) numbers. For the previous chapter numbers, this isn’t a problem since all chapter titles are aligned to the same column and the numbers I–VI are sufficiently narrow.  (The same happens regardless of document type, I’m actually using scrreprt with the same result.)  How can I prevent this? How to remove Ubuntu and put Windows back on? I have absolutely no experience with Linux, and I desperately need to get my computer back up and running again with Windows.  How do I remove Ubuntu and reinstall Windows?    Editor's note: many of the answers are about removing Ubuntu from dual-boot but keeping Windows (which is a bit complicated), while other answers are about removing Ubuntu from single-boot (which is easy: basically just format the disk while installing Windows). The question as written is ambiguous between dual-boot or single-boot. Can you use two "and"s in a sentence? For example,      I like chocolate, vanilla, and lemon and orange ice cream.    Indicating "lemon and orange" is a combined flavor, as an item in the list needing an initial and. What if the hard disk is partitioned into more than 26 sections in Windows? As we know, in Windows the partition location is prefixed with [a-z]:. What happens if there are more than 26 partitions? How can I change the registered name in Windows 7 to my own? I'm trying to run this command in the terminal:  sudo apt install software-properties-common   This is the error message I get:  E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)   E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend),     is another process using it? US Election results 2016: What went wrong with prediction models? First it was , now the US election. Many model predictions were off by a wide margin, and are there lessons to be learned here? As late as 4 pm PST yesterday, the betting markets were still favoring Hillary 4 to 1.  I take it that the betting markets, with real money on the line, should act as an ensemble of all the available prediction models out there. So it's not far-fetched to say these models didn't do a very good job.  I saw one explanation was voters were unwilling to identify themselves as Trump supporters. How could a model incorporate effects like that?  One macro explanation I read is the rise of . The question then is how could a statistical model capture a macro trend like that?  Are these prediction models out there putting too much weight on data from polls and sentiment, not enough from where the country is standing in a 100 year view? I am quoting a friend's comments. How can timelapse sequences be shot without in-camera support? How can timelapse sequences be shot without having in-camera support for it?  Which third-party tools are recommended?