Patch applied. Thanks James
On Dec 18, 2:17 am, James Curran <[email protected]> wrote: > This: > > (.*?)(url\()(?!["']?http|["']?/)(["']?)(?<Url>.*?)["']?\)(.*?) > > seems to work for all of the following lines: > > background-image: url(../images/default/shadow-c.png); > background-image: url('../images/icons/file-xslx.gif') !important; > background-image: url("../images/icons/file-xslx.gif") !important; > background-image: url('../images/icons/file-xslx.gif") !important; > background-image: url(../images/icons/file-xslx.gif") !important; > background-image: url("../images/icons/file-xslx.gif) !important; > background-image: url(/images/icons/file-xslx.gif) !important; > background-image: url('/images/icons/file-xslx.gif') !important; > background-image: url("/images/icons/file-xslx.gif") !important; > background-image: url('http://example.com/images/icons/file-xslx.gif') > !important; > background-image: url(http://example.com/images/icons/file-xslx.gif) > !important; > > The first 3 are properly formatted relative URLs, and match the pattern. > The next 3 are badly-fomatted relative URLs, which match the pattern > anyway (I could change that, but it's probably best this way) > The last 5 are absolute URLs and do not match the pattern. > > On Thu, Dec 17, 2009 at 3:47 AM, John Simons <[email protected]> > wrote: > > Anyone good at regex? > > This issue needs your > > help:http://support.castleproject.org/projects/MR/issues/view/MR-ISSUE-554 > > -- > Truth, > James -- You received this message because you are subscribed to the Google Groups "Castle Project Development List" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/castle-project-devel?hl=en.
