I'm assuming you're using VISA under LabVIEW. It sounds like you need to work with the string manipulation vi's. For example, you can use the match pattern vi to search for 'A=' then take the result and search for ' B='. The string remaining would be the number, which you could save in another array.
Check out the string vi's in the string function palette for other functions, including string to number conversion.