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.
User Profile
Collapse
-
need regular expression
-
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:) -
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)Leave a comment:
-
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"
-
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... -
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..:)Leave a comment:
-
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.
No activity results to display
Show More
Leave a comment: