Problem : I’m trying to implement syntax highlighting in C# on Android, using Xamarin. I’m using the ANTLR v4 library […]
Tag: parsing
Parse/display RTF text in HTML?
Problem : I’m looking to take some RTF code, such as this sample excerpt below, and displaying it in an […]
Using C# Regular expression to replace XML element content
Problem : I’m writing some code that handles logging xml data and I would like to be able to replace […]
Parsing string for Domain / hostName
Problem : Out customers can enter websites from domain names. They also can enter mailadresses from their contacts. Know we […]
C#: How to parse arbitrary strings into expression trees?
Problem : In a project that I’m working on I have to work with a rather weird data source. I […]
How to make a generic number parser in C#? [duplicate]
Problem : This question already has answers here: Is there any generic Parse() function that will convert a string to […]
Double.TryParse() ignores NumberFormatInfo.NumberGroupSizes?
Problem : I’d like to know if I’m missing something or not… I’m running under the standard Great British culture. […]
Pattern based string parse
Problem : When I need to stringify some values by joining them with commas, I do, for example: string.Format(“{0},{1},{3}”, item.Id, […]
.Net Parse versus Convert
Problem : In .Net you can read a string value into another data type using either <datatype>.parse or Convert.To<DataType>. I’m […]
DateTime.ParseExact with 7 digits / one or two digit month
Problem : Until now i thought that i would understand how DateTime.ParseExact works, but this is confusing. Why does following […]