我需要帮助形成一个特定的正则表达式(示例内部)

I need to build a regular expression that finds a string of this format:

[name] => X

Where X is equal to the name of something and is a line break. I would like to somehow return X in an array using preg_match.

^\[.*\] => (.*)$

http://rubular.com/