pattern matching - any text but not " ; "

14/09/2007 - 09:08 von hoffiman | Report spam
Hi all,

i need your help !!!

i need the string: the word create then_any_char but in
"then_any_char" is not a ;

for example: with this if ( $line =~ /create .*;/ )
i found the string "create text_text_Text ;"

and with this if ( $line =~ /create .*/ )
i found the string "create text_text_Text "
and also the string above - but i need only the sting "create
text_text_Text "

Somthing like "the word create" then any text but no ;

i am dispairing - please help

thanks
 

Lesen sie die antworten

#1 Klaus Johannes Rusch
17/12/2007 - 01:30 | Warnen spam
wrote:

Somthing like "the word create" then any text but no ;



/create [^;]*/

Klaus Johannes Rusch

http://www.atmedia.net/KlausRusch/

Ähnliche fragen