User Profile

Collapse

Profile Sidebar

Collapse
techtween
techtween
Last Activity: Jul 18 '11, 06:42 AM
Joined: May 4 '11
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • techtween
    started a topic need regular expression
    in Perl

    need regular expression

    hi i am new to perl, i have a doubt,
    $var1=ab_domino _1.xml
    i need the result when $var1 is printed as, ab_domino_thumb _1.jpg
    could you suggest regular expression for it. kindly note the difference in the text and result needed.
    See more | Go to post

  • techtween
    replied to group and print data seperately
    in Perl
    This was the exact result i was craving for.. Mirod loads of thanks to you, not only for the solution but also for the concept(XML::Tw ig , just now learnt coz of you) and also thanks again miller for your timely assistance:)
    See more | Go to post

    Leave a comment:


  • techtween
    replied to group and print data seperately
    in Perl
    Thanks a ton miller... But what should i do if there is an empty new line between my httpSample tags and i need to retrieve the tags above the empty new line into an array and the tags below the empty new line into another array and calculate the same(min, max and avg for each array seperately)
    See more | Go to post

    Leave a comment:


  • techtween
    started a topic group and print data seperately
    in Perl

    group and print data seperately

    I have an XML file of the form,

    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <testResults version="1.2">
    <httpSample t="704" lt="704" ts="1306146504248" s="true" lb="HTTP Request" rc="200" rm="OK" tn="Thread Group 2-1" dt="text" by="411"/>
    <httpSample t="525" lt="525"
    ...
    See more | Go to post
    Last edited by Niheel; May 24 '11, 11:23 PM. Reason: clarification

  • techtween
    started a topic get value of attribute in html tag
    in Perl

    get value of attribute in html tag

    for example,

    if this is the tag,

    <httpSample t="527" lt="527" ts="13061464119 99" s="true" lb="HTTP Request" rc="200" rm="OK" tn="Thread Group 1-1" dt="text" by="411" />


    i need the value of lt alone to be displayed. i couldnt get it right through regular expression. Hope you can provide me the...
    See more | Go to post

  • techtween
    replied to count same HTML tags using regex in perl
    in Perl
    Hi Miller,

    Thanks a ton. I knew it could best be done using tree builder, but i needed it using regex logic. Your code works perfectly fine..:)
    See more | Go to post

    Leave a comment:


  • techtween
    started a topic count same HTML tags using regex in perl
    in Perl

    count same HTML tags using regex in perl

    Kindly help me with the regular expression to count same html tags.

    for example,
    <html>
    <body>
    <b>file1</b><b>file2</b>
    </body>
    </html>

    output => two (since two <b> tags are present in the file)

    I need the expression to match any such same tags not specific to one tag.
    See more | Go to post
No activity results to display
Show More
Working...