I have a regular expression as follows: ^/[a-z0-9]+$ This matches strings such as /hello or /hello123. However, I would like it to exclude a couple of string values such as /ignoreme and /ignoreme...
How do I write a regex to match any string that doesn't meet a particular pattern? I'm faced with a situation where I have to match an (A and ~B) pattern.
Over the years I have slowly developed a regular expression that validates most email addresses correctly, assuming they don't use an IP address as the server part. I use it in several PHP programs...
Regex symbol to match at beginning of a line: ^ Add the string you're searching for (CTR) to the regex like this: ^CTR Example: regex That should be enough! However, if you need to get the text from the whole line in your language of choice, add a "match anything" pattern .*: ^CTR.* Example: more regex If you want to get crazy, use the end of ...
I'm searching for UUIDs in blocks of text using a regex. Currently I'm relying on the assumption that all UUIDs will follow a patttern of 8-4-4-4-12 hexadecimal digits. Can anyone think of a use c...
I know that the following regex will match "red", "green", or "blue". red|green|blue Is there a straightforward way of making it match everything except several specified strings?
How can I make the following regex ignore case sensitivity? It should match all the correct characters but ignore whether they are lower or uppercase. G[a-b].*
35 That's because your pattern contains a .-^ which is all characters between and including . and ^, which included digits and several other characters as shown below: If by special characters, you mean punctuation and symbols use:
I need a regular expression able to match everything but a string starting with a specific pattern (specifically index.php and what follows, like index.php?id=2342343).
My regex pattern looks something like <xxxx location="file path/level1/level2" xxxx some="xxx"> I am only interested in the part in quotes assigned to location.