亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費注冊 查看新帖 |

Chinaunix

  平臺 論壇 博客 文庫
12
最近訪問板塊 發(fā)新帖
樓主: 無聲無息
打印 上一主題 下一主題

提取一行中的特定字符段 [復(fù)制鏈接]

論壇徽章:
5
2015年辭舊歲徽章
日期:2015-03-03 16:54:152015年迎新春徽章
日期:2015-03-04 09:50:282015年亞洲杯之朝鮮
日期:2015-03-13 22:47:33IT運維版塊每日發(fā)帖之星
日期:2016-01-09 06:20:00IT運維版塊每周發(fā)帖之星
日期:2016-03-07 16:27:44
11 [報告]
發(fā)表于 2008-07-29 11:20 |只看該作者

回復(fù) #10 無聲無息 的帖子

我覺得這種問題的解決方法取決于你的數(shù)據(jù)文件,要知道你的想要的東西在數(shù)據(jù)文件中是如何表現(xiàn)的。

論壇徽章:
0
12 [報告]
發(fā)表于 2008-07-29 11:24 |只看該作者

回復(fù) #11 blackold 的帖子

有代表性的一段
function initializePlane(){This.plane1=new Image();This.plane1.onload=This.updateLoading;This.plane1.src="images/planes/plane1.gif";This.plane1CountImage=new Image();This.plane1CountImage.onload=This.updateLoading;This.plane1CountImage.src="images/planes/plane1Count.gif";};function initializePlaneBullet(){This.planeBullet1=new Image();This.planeBullet1.onload=This.updateLoading;This.planeBullet1.src="images/planeBullets/planeBullet1_Power1.gif";This.planeBullet2=new Image();This.planeBullet2.onload=This.updateLoading;This.planeBullet2.src="images/planeBullets/planeBullet1_Power2.gif";This.planeBullet3=new Image();This.planeBullet3.onload=This.updateLoading;This.planeBullet3.src="images/planeBullets/planeBullet1_Power3.gif";This.concentrationBullet1=new Image();This.concentrationBullet1.onload=This.updateLoading;This.concentrationBullet1.src="images/planeBullets/concentrationBullet1.gif";};function initializeBonus(){This.powerBonus1=new Image();This.powerBonus1.onload=This.updateLoading;This.powerBonus1.src="images/bonus/powers/power1.gif";This.bombBonus1=new Image();This.bombBonus1.onload=This.updateLoading;This.bombBonus1.src="images/bonus/bombs/bomb1.gif";This.bombStateImage=new Image();This.bombStateImage.onload=This.updateLoading;This.bombStateImage.src="images/bonus/bombs/":"listBomb1":".gif";};function initializeAnimation(){This.concentration1=new Array();for(var i=0;i<10;i++){This.concentration1=new Image();This.concentration1.onload=This.updateLoading;This.concentration1.src="images/animations/concentration1/"+i+".gif";This.totalLoad++;}This.bombing1=new Array()

需要將gif的路徑找出來。

例如
images/bonus/bombs/":"listBomb1":".gif
images/animations/concentration1/"+i+".gif

[ 本帖最后由 無聲無息 于 2008-7-29 11:25 編輯 ]

論壇徽章:
23
15-16賽季CBA聯(lián)賽之吉林
日期:2017-12-21 16:39:27白羊座
日期:2014-10-27 11:14:37申猴
日期:2014-10-23 08:36:23金牛座
日期:2014-09-30 08:26:49午馬
日期:2014-09-29 09:40:16射手座
日期:2014-11-25 08:56:112015年辭舊歲徽章
日期:2015-03-03 16:54:152015年迎新春徽章
日期:2015-03-04 09:49:0315-16賽季CBA聯(lián)賽之山東
日期:2017-12-21 16:39:1915-16賽季CBA聯(lián)賽之廣東
日期:2016-01-19 13:33:372015亞冠之山東魯能
日期:2015-10-13 09:39:062015亞冠之西悉尼流浪者
日期:2015-09-21 08:27:57
13 [報告]
發(fā)表于 2008-07-29 11:28 |只看該作者
原帖由 無聲無息 于 2008-7-29 11:24 發(fā)表
有代表性的一段
function initializePlane(){This.plane1=new Image();This.plane1.onload=This.updateLoading;This.plane1.src="images/planes/plane1.gif";This.plane1CountImage=new Image();This.plane1Co ...


grep -o '[^=]*\.gif' urfile | sed 's/"//'

[ 本帖最后由 ly5066113 于 2008-7-29 11:31 編輯 ]

論壇徽章:
0
14 [報告]
發(fā)表于 2008-07-29 11:30 |只看該作者
grep -o '[^=]*\.gif'|sed 's/"//'

論壇徽章:
0
15 [報告]
發(fā)表于 2008-07-29 11:30 |只看該作者

回復(fù) #13 ly5066113 的帖子

ly兄看錯了什么意思?

等你出手了

論壇徽章:
5
2015年辭舊歲徽章
日期:2015-03-03 16:54:152015年迎新春徽章
日期:2015-03-04 09:50:282015年亞洲杯之朝鮮
日期:2015-03-13 22:47:33IT運維版塊每日發(fā)帖之星
日期:2016-01-09 06:20:00IT運維版塊每周發(fā)帖之星
日期:2016-03-07 16:27:44
16 [報告]
發(fā)表于 2008-07-29 11:31 |只看該作者

回復(fù) #12 無聲無息 的帖子

try:
  1. $ grep -Eo 'src=[^=]+\.gif' urfile|sed 's/^src=.//'|sort -u
  2. images/animations/concentration1/"+i+".gif
  3. images/bonus/bombs/":"listBomb1":".gif
  4. images/bonus/bombs/bomb1.gif
  5. images/bonus/powers/power1.gif
  6. images/planeBullets/concentrationBullet1.gif
  7. images/planeBullets/planeBullet1_Power1.gif
  8. images/planeBullets/planeBullet1_Power2.gif
  9. images/planeBullets/planeBullet1_Power3.gif
  10. images/planes/plane1.gif
  11. images/planes/plane1Count.gif
復(fù)制代碼

論壇徽章:
0
17 [報告]
發(fā)表于 2008-07-29 11:40 |只看該作者

回復(fù) #16 blackold 的帖子

最終是找分割符號問題

我小白了

src=作為特征可以的。

貌似沒有src=做文件名的,如果其他文件有,就不確定。一般程序員都不會這么命名

這么招先,thx大家

論壇徽章:
0
18 [報告]
發(fā)表于 2008-07-29 11:41 |只看該作者
回復(fù) #14 walkerxk 的帖子

回復(fù) #13 ly5066113 的帖子

thx,目前文件是可以的

論壇徽章:
0
19 [報告]
發(fā)表于 2008-07-29 11:46 |只看該作者
呵呵 學(xué)習(xí)了
您需要登錄后才可以回帖 登錄 | 注冊

本版積分規(guī)則 發(fā)表回復(fù)

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報專區(qū)
中國互聯(lián)網(wǎng)協(xié)會會員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP