Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Hierarchical SQL Select
Message
De
07/09/2009 14:31:34
 
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Divers
Thread ID:
01422513
Message ID:
01422973
Vues:
44
>>>>>>I believe the ut could easily 'recognize' those. It's just a matter of changing a regex imo
>>>>>
>>>>>What regex would you suggest?
>>>>
>>>>One that does not stop before a closing parenthesis
>>>>
>>>>
>>>>Compare
>>>> http://msdn.microsoft.com/en-us/library/aa172799SQL.80.aspx
>>>> http://msdn.microsoft.com/en-us/library/aa172799SQL.80.a
>>>>
>>>>and
>>>>http://msdn.microsoft.com/en-us/library/aa172799(SQL.80).aspx
>>>>http://msdn.microsoft.com/en-us/library/aa172799(SQL.80).a
>>>
>>>What about
>>>(http://msdn.microsoft.com/en-us/library/aa172799SQL.80.aspx)
>>>(http://msdn.microsoft.com/en-us/library/aa172799SQL.80.a)
>>
>>Ok, I see the point
>>
>>Still, you can make a pattern that does not accept a ) as the last char.. Something like
>>
>>
>>
>>((http[s]?|ftp)://[\w/.()-]+[\w/.(-])
>>
>>
>>it will match
>>
>>http://msdn.microsoft.com/en-us/library/aa172799(SQL.80).aspx
>>
>>and 
>>http://msdn.microsoft.com/en-us/library/aa172799SQL.80.aspx
>>
>>in 
>>
>>(http://msdn.microsoft.com/en-us/library/aa172799SQL.80.aspx)
>>
>
>What about
>
>www.msdn.microsoft.com/en-us/library/aa139615.aspx ?
>
>I think we may need to use two different patterns - one pattern would not cover all cases.
>
>May be hardcode aspx extension for cases allowing () inside.
(((http[s]?|ftp)://)|(www\.))[\w/.()-]+[\w/.(-]
if you need two patterns, you can make one

I would not treat aspx as a special case, who says () are not allowed in htm/html ?
Gregory
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform