取字串中字串

作者: tree581 (talltree)   2018-07-09 10:30:51
各位大大好
我有一個取db的
While read{
string a=gerstring(reader,"aa")
}
a的值取出來是
dbsource............... time=100
我要怎麼在取出time=100,
使我的新變數int timeout=100(上面那個)
請教謝謝
作者: O2000 (吵死了 閉嘴啦)   2018-07-09 11:24:00
是「再」不是「在」 Regex(@"time=\d+")

Links booklink

Contact Us: admin [ a t ] ucptt.com