string str=@"MODULE: X
AVAILABLE BYTES: 3121152
MODULE: Y
ABC
DEF
GHI34
JKL.23
AVAILABLE BYTES: 3121152";
Regex moduleMemory = new Regex("MODULE: Y + .*AVAILABLE BYTES: ([0-9]*)", RegexOptions.Singleline);

Match match = moduleMemory.Match(dataFromDevice);

String mem = match.Groups[0].Value;
I need to fetch MODULE: Y Available bytes but i guess regular expression is not proper.no match is found.can any one help me to find out regex expression?