.*? instad of .*
From: Zhidian Du (zdu_at_cs.nmsu.edu)
Date: 11/27/03
- Next message: Iain Chalmers: "Re: .*? instad of .*"
- Previous message: Default_at_IO_Error_1011101.xyz: "Curses %$#@!"
- Next in thread: Iain Chalmers: "Re: .*? instad of .*"
- Reply: Iain Chalmers: "Re: .*? instad of .*"
- Reply: Default_at_IO_Error_1011101.xyz: "Re: .*? instad of .*"
- Reply: Gunnar Hjalmarsson: "Re: .*? instad of .*"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 26 Nov 2003 21:37:31 -0800
I read a program that strip tags of html
while(<>){
s/<.*?>//gs
}
I am courious why it uses .*?, not .*
Another question, while(<>) read one line at a time or a couple lines of a time?
How do I know it?
Thanks.
Z. Du
- Next message: Iain Chalmers: "Re: .*? instad of .*"
- Previous message: Default_at_IO_Error_1011101.xyz: "Curses %$#@!"
- Next in thread: Iain Chalmers: "Re: .*? instad of .*"
- Reply: Iain Chalmers: "Re: .*? instad of .*"
- Reply: Default_at_IO_Error_1011101.xyz: "Re: .*? instad of .*"
- Reply: Gunnar Hjalmarsson: "Re: .*? instad of .*"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]