Re: regex help with wildcards

2001-08-20 Thread George S Pereira
Thi small program will explain how it can be done : #! /opt/bin/perl5 -w $str = 'This contains a number of ( and ) ... '; $str =~ s/<.*?>/<>/g; print "$str\n"; This program will remove all characters between < and >. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= George Pereira CMIE 11, Apple

Re: regex help with wildcards

2001-08-20 Thread Sascha Kersken
Hi! What about just doing $string =~ s/<[^>]+>//; which will match any number of chars that AREN'T ">" and a ">" behind that. Sascha At 12:06 20.08.01 +0200, you wrote: >Im not sure if this is possible but i want to delete all chars inbeteen >< and > so if i had id like to delete it, >Her

regex help with wildcards

2001-08-20 Thread Merritt Krakowitzer
Im not sure if this is possible but i want to delete all chars inbeteen < and > so if i had id like to delete it, Here an example of the best way i can figure out how to do it :) $string =~ s/\<.\>|\<..\>|\<...\>|\<\>|\<..\>// so I'm looking for a shorter way, I cant find any wildcards