문제

I need to find following kind of links having the same beginning but a different ending.

http://www.domain.com/buy/best%20iphone%20leather%20case.html

the links always start with http://www.domain.com/buy/ but can end with different links:

best%20iphone%20leather%20case.html
best%20ipad%20chargers.html
etc..
도움이 되었습니까?

해결책

Your start string is fixed so will just have to use:

^http://www\.domain\.com/buy/.*\.html

^ is used in regular expression to point beginning with 'string/word/character'.

You may have to escape '/' and '.' putting '\' just before these characters.

다른 팁

Use this regex:

^http://www\.domain\.com/buy/.+?html
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top