看板 [ RegExp ]
討論串[問題] 一個取值的小問題
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者montaler (頭兒)時間14年前 (2011/03/29 17:05), 編輯資訊
1
0
0
內容預覽:
問題如下;. 現在有許多字串,他裡頭會有. E_sun_day. sun. amp_delta_sun_18. amp_delta_sun_0. delta_sun. 這五種跟 sun 有關的字串,但我想用JAVA的 Regular Expression 挑出. 不包含 E_sun_day 的字串,

推噓2(2推 0噓 1→)留言3則,0人參與, 最新作者No (you stay there)時間14年前 (2011/03/29 19:55), 編輯資訊
0
0
0
內容預覽:
/[\w]*(([^E]|[\w]{2,})_sun_day|sun(?!_day))[\w]*/. 測試字串 結果. E_sun_day F. sun T. amp_delta_sun_18 T. amp_delta_sun_0 T. delta_sun T. A_sun_day T. LE_su
(還有62個字)
首頁
上一頁
1
下一頁
尾頁