[Solved] How to cut up a string from an input file with Regex or String Split, C#?
Description This regex will: capture the fields values for subject, from, to, and read the fields can be listed in the source string in any order capture the date on the second line what starts with a single # ^\#(?!\#)([^\r\n]*)(?=.*?^Subject=([^\r\n]*))(?=.*?^From=([^\r\n]*))(?=.*?^To=([^\r\n]*))(?=.*?^Read=([^\r\n]*)) Expanded ^\#(?!\#) match the first line which only has a single # ([^\r\n]*) capture all … Read more