45 users online (2 members and 43 guests)  


  Results 1 to 3 of 3
  1. #1
    nechowdary's Avatar
    New User

    Status
    Offline
    Join Date
    Oct 2006
    Posts
    3

    what this represent..

    hi plz explain this
    [ ".*pxx.*\\\n.*saxx" , '"\tpxx"' ];

    please explain this ..
    thanks
    gopi.

  2. #2
    ALL's Avatar
    Super Dooper Nerd

    Status
    Offline
    Join Date
    Feb 2005
    Location
    localhost
    Posts
    382

    Re: what this represent..

    if you give us more of the code we can help you better... anyway...

    it probably has a variable or something infront of it so...

    $variable[".*pxx.*\\\n.*saxx" , '"\tpxx"']

    the .* means anycharacter to any length
    pxx means just pxx
    again .* means any character any length
    \\ means escape the slash... so it will out put a single \
    \n means new line
    you know what .* means...
    saxx is just a sting like pxx was...
    not exactly sure what the comma represents because i dont have all the code...
    \t means tab character
    pxx means just pxx
    and the two double quotes means just double quotes...

    so it should match te following in the first expression...

    "hello003mynam3i5j0npxx\
    withanycharacters442s saxx"

    "asdf442nasj2



    pxx
    eddfew\
    saxx"

  3. #3
    nechowdary's Avatar
    New User

    Status
    Offline
    Join Date
    Oct 2006
    Posts
    3

    Re: what this represent..

    Quote Originally Posted by ALL
    if you give us more of the code we can help you better... anyway...

    it probably has a variable or something infront of it so...

    $variable[".*pxx.*\\\n.*saxx" , '"\tpxx"']

    the .* means anycharacter to any length
    pxx means just pxx
    again .* means any character any length
    \\ means escape the slash... so it will out put a single \
    \n means new line
    you know what .* means...
    saxx is just a sting like pxx was...
    not exactly sure what the comma represents because i dont have all the code...
    \t means tab character
    pxx means just pxx
    and the two double quotes means just double quotes...

    so it should match te following in the first expression...

    "hello003mynam3i5j0npxx\
    withanycharacters442s saxx"

    "asdf442nasj2



    pxx
    eddfew\
    saxx"
    Thanks for u r help..
    the above given expression is assigned to a scalar that is..
    $h_list{"Mfile"} =
    [ ".*pxx.*\\\n.*saxx" , '"\txx" ' ];
    plz let me know abt this..
    Thanks
    ALL




Tags for this Thread