1
我有一個字符串,像這樣:如何在ruby中編寫這個正則表達式?
"\"john smith\" <[email protected]>, \"[email protected]\" <[email protected]>"
我需要的是一個Ruby的Hash,看起來像:
{ 'john smith' => '[email protected]', '[email protected] => '[email protected]' }
我將如何使用正則表達式來做到這一點?
太棒了,謝謝 –