Sample input:
`"http://bits.wikimedia.org/w/extensions-1.17/MobileFrontend/stylesheets/webkit.css"`
my attempt: `"http://.*?/stylesheets/webkit.css"` does not find any matches
The part of the url between `"http://"` and `"webkit.css"` is variable
Thanks!
My bad, I was using Java's replace() function as opposed to replaceFirst() or replaceAll()
以上就是Java Regex: replacing a specific kind of url in a string?的详细内容,更多请关注web前端其它相关文章!