Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Fix URLs containing parenthesis
Message
De
09/04/2010 11:43:38
 
 
Information générale
Forum:
Level Extreme
Catégorie:
Autre
Divers
Thread ID:
01459402
Message ID:
01459476
Vues:
26
>>>>>>Gregory Adam posted a RegEx expression you can use and which is bullet proof.
>>>>>
>>>>>It is not about a function that would be bullet proof. It just cannot be done because there are too many variations and no matter the logic that could be applied, there are always situations where this shouldn't be a link and where it should. This character shouldn't even be used at all in URL.
>>>>
>>>>You could allow parentheses in a url without allowing them in the part after the . ie not in .aspx
>>>>
>>>>
>>>>I think that would solve it
>>>
>>>Post your RegEx expression and let Sergey test it.
>>
>>
>>I have already searched - cannot find it anymore
>>
>>Anyway, I'm looking for a definition of a url format (ie structure and valid chars) Once I have that I may have a go at it
>
>BTW, what do you think about my other idea - simply have a button under the message to allow insertion of a link with a title - it should solve complex URL problem.

Not really that helpful - it's extra operation for the user. Better solve the problem of recognizing a url in the first place
Gregory
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform