Extract argumens values from the format string <p>I have a string which is actually a format for example <code>"m_{0}A1_{1}Tmp"</code> given such format string and data I need to extract the values of the arguments i.e. <code>{0}</code> and <code>{1}</code> Following the example above if the data is <code>m_TomerA1_DbTmp</code> , I should extract that the first argument is <code>Tomer</code> and the second is <code>Db</code> Will be glad to hear how can I do it? My intuition says that I need regular expression here...</p>