Recursive regex pattern to match nested C++ template classes
I am trying to match a certain C++ template class (e.g. Foo<*>
) using regex but I fail to match when the template parameter is another template class or when multiple nested template classes are used. Consider the following example:
Not enough )’s in C# regex
I have an excel sheet that looks like this:
Regex Remove spaces in front of punctuation [duplicate]
This question already has answers here: Remove spaces before punctuation with RegEx (2 answers) Closed last month. Hi I’m trying to replace spaces in front of punctuation using regex. I want to use Replace in c# – trying to replace with Regex a call like this: value = value .Replace(” !”, “!”) .Replace(” .”, “.”) […]
How to build a regex for a whole word match for all languages in cpp?
Will the b
regex for word boundary work in cpp for all languages? Or is it just latin alphabet?
Check for at least 1 digit and 1 letter within the first n characters
I have to check if there are numbers and letters in the first 5 characters of an order number from a customer.
There must always be at least 1 letter and at least 1 number.
C# Regular expression string not ending with certain text sequence
I’m searching the pattern for a code like this:
(the whitespace = a dot)
Getting text from a string
I am using this pattern below
Regex code to read out coordinates from a single line
I have a string from which I want to read the coordinates for the X axis.
Issue in masking AccountNumber and CreditCardNo in a free text field
I am having issue in masking the below strings. For Account Number, the last 4 digits should get masked if it’s in the range of 8 to 9 and for Credit Card Number the last 4 digits should masked if it’s in range of 12-19. Below is the format of (Input,Output)-
Issue while masking Credit Card No. before and/or after spaces
I am having an issue when there is a space before/after in CreditCardNo. For e.g “from INV 2420852290 to SAV 0165487”. Here 2420852290 is 10-digits still it is getting masked.