Re: Regular Expressions

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Regular Expressions Re: Regular Expressions

#58534
Anonymous
Participant

    Keith,

    I do not think in the regular expressions you could search the syntax with double quote.

    Here is a test :

    The regexp would return 1 if the match is found else 0. see the test resultes below.

    Hope this helps.

    -reggie-

    hcitcl>set test “10185”,,”CARD”

    Error: extra characters after close-quote

    hcitcl>set test “”10185″,,”CARD””

    Error: extra characters after close-quote

    hcitcl>set test “10185 , , CARD”

    hcitcl>echo $test

    10185 , , CARD

    hcitcl>regexp — {“[0-9]*”,*,”[A-Z]*”} $test

    0

    hcitcl>echo $test

    10185 , , CARD

    hcitcl>regexp — {[0-9]* ,*, [A-Z]*} $test

    1