[a-z][A-Z] => [a-zA-Z]

Also...

[a-z|A-Z|/|\.|-] inside a character class your | is being interpretted as a
literal pipe, so while you're trying to do alternation, it's not the right
place

[a-z|A-Z|/|\.|-] => [a-zA-Z/\.-]



On Thu, Dec 17, 2009 at 1:30 PM, Leonardo Lima
<[email protected]>wrote:

> Hi...
>
> You could try this one
>
>
> (.*)url\(\.{2}[a-z|A-Z|/|\.|-]+\)(.*)|(.*)url\('\.{2}[a-z|A-Z|/|\.|-]+'\)(.*)|(.*)url\("\.{2}[a-z|A-Z|/|\.|-]+"\)(.*)
>
> I hope that this could help you
>
>
> Best Regards
> Leonardo Lima
>
>
>
> 2009/12/17 James Curran <[email protected]>
>
> 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]<castle-project-devel%[email protected]>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/castle-project-devel?hl=en.
>>
>>
>>
>  --
> 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]<castle-project-devel%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/castle-project-devel?hl=en.
>



-- 
Tim Barcz
Microsoft C# MVP
Microsoft ASPInsider
http://timbarcz.devlicio.us
http://www.twitter.com/timbarcz

--

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.


Reply via email to