Re: subroutine as search string?

2001-06-27 Thread Noah Sussman
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." --

subroutine as search string?

2001-06-27 Thread Noah Sussman
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

Re: negative matching?

2001-05-15 Thread Noah Sussman
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

Re: negative matching?

2001-05-15 Thread Noah Sussman
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

Re: negative matching?

2001-05-15 Thread Noah Sussman
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

Re: negative matching?

2001-05-15 Thread Noah Sussman
gt; use strict; > > undef $/; > > my $text = "hello" ; > > while (<>) { > > unless (m{}ix){ > > s{(}{$1$2 alt="$text">}gsix; > > } > > print "$_"; > > } > > > > > > -- > Noah Sus

Re: negative matching?

2001-05-15 Thread Noah Sussman
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

negative matching?

2001-05-14 Thread Noah Sussman
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; }