Set Aqua Blue
![]() |
![]() New Ruffle Style Ladies Medical Nursing Scrubs Set Aqua Blue Brown Nurse Uniform US $23.99
|
![]() Medical Scrubs Sets NATURAL UNIFORMS XS S M L XL XXL XXXL Unisex TopsPans New US $15.99
|
![]() NWT Natural Uniforms Aqua Blue 2 Pc Top Pants Doctor Medical Scrub Set Sz M US $16.19
|
![]() NWT BONUS GIFT RAINBOW HEART V NECK AQUA BLUE ELASTIC PANT SCRUB SET MISSES XS US $14.99
|
![]() NWT NURSE SCRUB SET AQUA BLUE BY MOBB MEDICAL US $13.95
|
![]() Dynasty Uniforms Unisex Nurse Scrubs Uniforms Solid Color Set NEW US $17.00
|
![]() Medical Nursing SCRUB SET Top Pant Sizes SMLXL2X3X Paisley w Aqua Blue US $24.99
|
![]() Light Blue Aqua Urbane Scrub Set Top Ladies Womens Extra Small Pants SM Small US $16.00
|
Set Aqua Blue

How to search a keyword from HTML file using Perl, or any other programming language?
Writing a program to find out whether the HTML file contain the word 'keyword' using Perl. Also please advise if other language is easier
Perl is pretty easy-- just as easy or easier than any other program out there to use, especially considering that many other languages use Perl's regular expression scheme, which is exactly what you want to be using. Here's pretty much what you want:
if($html =~ /bkeywordb/s) {
#yes! the keyword is there
} else {
#no! keyword is not there
}
That assumes that the whole HTML content is contained within the $html variable, of course-- and it also assumes a few other things, like that you don't want to match things like "blah_keywordfoo". But those are easy to change-- more detail could let us give you a more accurate answer, too.
[edit]Stripping out the html tags like that? Try this instead to strip out html tags:
s/?w+(s+w+|s+w+="[^"]*"|s+w+=[^ rnt>]+)*/?>//gs
Of course, Y!A won't let me post that code in full, so here it is broken down on several lines (annoying):
s/?w+(s+w+|s+
w+="[^"]*"|s+w+=[
^ rnt>]+)*/?>//gs
That ought to take care of all your HTML tags, and nothing else, with the arguable exception of HTML tags in JavaScript text strings.
[/edit]
DaveE
myHotelVideo.com presents Aqua Blue in Hurghada / Hurghada / Egypt


US $23.99







Leave a Comment