문제

I made this code :

^http:.*.swf$

to extract swf link from string : starting from http and ending in swf

is it ideal ? or are there better rules to do that ?

thanks

도움이 되었습니까?

해결책

If you know that it will always start and end with that, it's fine but make sure you escape (\) the dot.

^http:.*?\.swf$
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top