Get a word with his value : There is exists a way to extract a word with the value in a file.

For example

File contents:

"foo":1234,"bar":123

Or

foo:1234,bar:123

I only need foo:1234


Can someone help me?