REGEX and ?

erne ernestogiannotta at tiscalinet.it
Fri Apr 20 11:08:23 CDT 2007


on 20-04-2007 17:56, jda at jda at his.com wrote:

>> Hello Jon,
>> 
>> on 20-04-2007 16:19, jda at jda at his.com wrote:
>> 
>>>> 
>>>> 
>>>> ALL characters that are used by REGEX itself.
>>>> 
>>>> Please read URL about ICU regex (in wiki kernel as I remember)
>>>> 
>>> 
>>> Got it. For those playing at  home, the answer is
>>> 
>>> Characters that must be quoted to be treated as literals are * ? + [
>>> ( ) { } ^ $ | \ . /
>>> 
>> 
>> a safe way to play with regex is to pass any string through
>> Valentina.EscapeString(true) function
>> 
> 
> Hi Erne,
> 
> That's what I thought, and I do that, but it doesn't escape most of
> the characters listed above (I think it escapes \). But try it
> yourself and see if you get a different result from me.
> 

from what I understand is up to you to escape the characters in your Regex,
then pass it through Escapestring that will add the extra slashes when
needed


Cool Runnings,
Erne.
-- 
| e r |  Ernesto Giannotta
| n e |  Musical Box - a media store
                   




More information about the Valentina mailing list