Вопрос

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