t the
subroutine working.
--
Noah Sussman
Senior Web Developer
Deltathree, The IP Communications Network
75 Broad St, 31st Floor
New York, NY 10004
tel 212-500-4845
fax 212-500-4888
[EMAIL PROTECTED]
www.deltathree.com
"A foolish consistency is the hobgoblin of little minds."
--
return $regex_is;
}
Does anyone have ideas or code on how I could make this work?
Thanks so much!
--
Noah Sussman
Senior Web Developer
Deltathree, The IP Communications Network
75 Broad St, 31st Floor
New York, NY 10004
tel 212-500-4845
fax 212-500-4888
[EMAIL PROTECTED]
www.deltathree.com
Yes, that is a good piece of code to know. Thank you, I will be using that
in the future!
--
Noah Sussman
Senior Web Developer
Deltathree, The IP Communications Network
75 Broad St, 31st Floor
New York, NY 10004
tel 212-500-4845
fax 212-500-4888
[EMAIL PROTECTED]
www.deltathree.com
"N
te, it stops the
search altogether.
I just wanted to clarify, since the problem is now solved. (See Jeff
Pinyan's contribution to this thread for the solution.)
Thanks again!
--
Noah Sussman
Senior Web Developer
Deltathree, The IP Communications Network
75 Broad St, 31st Floor
New York, NY 10
l_ IMG
tags, even if they already contain an alt attribute.
--
Noah Sussman
Senior Web Developer
Deltathree, The IP Communications Network
75 Broad St, 31st Floor
New York, NY 10004
tel 212-500-4845
fax 212-500-4888
[EMAIL PROTECTED]
www.deltathree.com
"There is nothing more deceptive
gt; use strict;
>
> undef $/;
>
> my $text = "hello" ;
>
> while (<>) {
>
> unless (m{}ix){
>
> s{(}{$1$2 alt="$text">}gsix;
>
> }
>
> print "$_";
>
> }
>
>
>
>
>
> --
> Noah Sus
Jeff,
Thanks so much for sharing that regex! You've not only solved my problem
but given me a lot of new tools to work with!
I found the use of ! to tell Perl not to find particularly useful
btw.
Thanks again!
--
Noah Sussman
Senior Web Developer
Deltathree, The IP Communications Ne
to do this over multiple lines as well!).
This is my code so far, any comments would be hugely appreciated:
#! -w
use strict;
undef $/;
my $text = "hello" ;
while (<>) {
unless (m{}ix){
s{(}{$1$2 alt="$text">}gsix;
}