Order of regular expression operator (..|.. … ..|..)
What is the order of priority of expressions in (..|. .. .|..)
operator – left to right, right to left or something else?
Order of regular expression operator (..|.. … ..|..)
What is the order of priority of expressions in (..|. .. .|..)
operator – left to right, right to left or something else?
Regular expression to check for potential isograms C#
Suppose I need to write a method to look for non-repetetive characters (hyphens and whitespace characters are allowed to be met more than one time in an input):
Regex doesn’t match subgroups as expected
I am writing a C program that makes use of regex to detect a string like:
How can I do a regex replace that takes arbitrary characters in the string into consideration?
I have a piece of code which indexes a 1D as a 2D array like this:
Matching word boundary does not work in C
I am trying to find out whether a full word, say test
, exists in a sentence and I’d like to do it in a case-insensitive manner. I took advantage of regex capabilities in C and used b
in the pattern. Here is the program
Matching a fixed position in a string using C++ regex
Do C++ regular expressions have a way to refer to a fixed position within a string? I am looking for a notation that is (fictitiously) shown in the following example as @n
, where n
is the index of the following character:
Use regex in C# to replace single and double quotation marks with smart quotation marks
I am creating a text heavy game and the text-based content currently has non-smart (“, ‘) quotation marks but we want there to be smart (“, ”, ‘, ’) quotation marks. I hard programmed a loop to do this conversion during runtime but a regex approach could be far more suitable than my hefty loop. I’ve found it quite difficult to generate any good regular expressions (given a general lack of skill in the regex department).
Regex performance seems to drop exponentially as the string to match gets longer
I’ve been using this C# function to determine if the passed string could be interpreted as a valid regex.
Regelar Expression to match Quoted or Unquoted windows file paths
I have text that I need to extract all file or folder paths (bold text below).
Unquoted paths have no spaces and need to be matched as well as quoted paths.
This is DOT.NET regex flavor in C#.