How can I check is there any consecutive characters with a regex in Swift 4.0??

Can anyone give me a Swift regex to identify consecutive characters in a string? My regex is .*(.)\\1$ and this is n...

java.util.regex.PatternSyntaxException: Dangling meta character '+' near index 0 +?

I am getting the error when I launch my UI that causes this code to spit the error at me in the title. It works for ...

What does \d+ mean in regular expression terms??

I'm new to regular expressions and came accros the following \d+ . I do not exactly know what this means, please poi...

use of colon symbol in regular expression?

I am new to regex .I am studying it in regularexperssion.com ..The question is that i need to know what is the use o...

RE error: illegal byte sequence on Mac OS X?

I'm trying to replace a string in a Makefile on Mac OS X for cross-compiling to iOS. The string has embedded double ...

Finding a regular expression?

I have a simple question about finding a regular expression for a given language. I am given the language L where: ...

Regex : remove first 0 if second digit of the string is not a 0?

I have to clean up with Regex phone numbers. Sometimes i get phone number starting with 0, in this case i wan t to ...

State Elimination DFA to Regular Expression?

I have a few questions regarding state elimination and the terminology. In the example above is a DFA with a acc...

preg_match_all JS equivalent??

Is there an equivalent of PHP's preg_match_all in Javascript? If not, what would be the best way to get all matches ...

How do I check whether input string contains any spaces??

I have a input dialog that asks for XML element name, and I want to check it to see if it has any spaces. can I do ...

Remove punctuation from string with Regex?

I'm really bad with Regex but I want to remove all these .,;:'"$#@!?/*&^-+ out of a string string x = "This is ...

Using preg_match to find an img tag in a string?

How can I find an HTML tag in a string with PHP? This is a record in my database: $str = "This is me <img src='...

What does [^*] mean??

So [^x] means don't match "x", and x* means match "x" 0 or more times, but what does [^*] mean? ...

Difference between “.+” and “.+?”?

Can someone please explain the difference between .+ and .+? I have the string: "extend cup end table" The patter...

Regular expression help - comma delimited string?

I don't write many regular expressions so I'm going to need some help on the one. I need a regular expression that ...