Skip to content
.Net DizzyCoding
.Net Question and Answer Documentation
MENU
  • Home

Tag: regex

Efficiently Combine MatchCollections in .NET regular expressions

By StevePosted on March 23, 2023August 31, 2022

Problem : In the simplified example, there are two regular expressions, one case sensitive, the other not. The idea would […]

Regex using word boundary but word ends with a . (period)

By StevePosted on March 18, 2023

Problem : want to match word i.v. case insensitive have pattern (?i)bi.v. but want a word boundary on the end […]

How regular expression OR operator is evaluated

By StevePosted on March 8, 2023

Problem : In T-SQL I have generated UNIQUEIDENTIFIER using NEWID() function. For example: 723952A7-96C6-421F-961F-80E66A4F29D2 Then, all dashes (-) are removed […]

Regex ‘or’ operator avoid repetition

By StevePosted on March 7, 2023

Problem : How can I use the or operator while not allowing repetition? In other words the regex: (word1|word2|word3)+ will […]

How to write a regular expression pattern that is capable of validating URIs?

By StevePosted on March 6, 2023

Problem : How does one go about authoring a Regular Expression that matches against all strings that are valid URIs, […]

Why does this backreference not work inside a lookbehind?

By StevePosted on February 28, 2023

Problem : Matching a repeated character in regex is simple with a backreference: (.)1 Test it here. However, I would […]

Parsing extra characters from Datetime

By StevePosted on February 27, 2023

Problem : Hi I have following code that reads the date from a file. using (var reader = new StreamReader(@”C:myfile.txt”)) […]

Detect email in text using regex

By StevePosted on February 26, 2023

Problem : I want to detect emails in text format so that I can put an anchor tag over them […]

Convert result of matches from regex into list of string

By StevePosted on February 22, 2023

Problem : How can I convert the list of match result from regex into List<string>? I have this function but […]

How does MatchEvaluator in Regex.Replace work?

By StevePosted on February 21, 2023

Problem : This is the input string 23x * y34x2. I want to insert ” * ” (star surrounded by […]

  • 1
  • 2
  • 3
  • …
  • 13

Recent Posts

  • Encrypt SQLite database in C#
  • BestPractice – Transform first character of a string into lower case
  • How to make streams from BLOBs available in plain old C# objects when using SqlDataReader?
  • Should I catch all possible specific exceptions or just general Exception and wrap it in custom one?
  • What does messageBox.Show() do in order to stop the execution of a UI thread?
  • Changing connection string at runtime in Enterprise Library
  • printing to pdf
  • Difference between Request.Cookies and Response.Cookies
  • Why Finalize method not allowed to override
  • Is a static repository a right way to use NHibernate?
  • How to read a WebClient response after posting data?
  • The || (or) Operator in Linq with C#
  • Graph rendering using 3D acceleration
  • how can I convert IQueryable to string?
  • Does a SharePoint EventReceiver have to be installed in the GAC, and if so do all dependent assemblies have to as well?
Proudly powered by WordPress / Php Dizzy Coding