In Java I could simply extracts parts of codes or texts using Regex, but in C# I'm not sure how I could do this. For example:
Pattern p = Pattern.compile("(.*?)b(.*?)d(.*?)", Pattern.DOTALL|Pattern.MULTILINE);
Matcher matcher = p.matcher("abcde");
System.out.println(matcher.group(1)); //c
I've found lots of tutorials about Regex in C# but I found no way to do something simple like this. But it has to work with every kind and number of text, numbers, symbols and so on, so that I can use it for example to extract parts of HTML code.