regular expression Question
| From: | Sonia Tsui | Date: | Wed, 13 Sep 2000 23:07:32 +0000 |
| Subject: | regular expression Question | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-16659@lists.php.net to get a copy of this message | ||
What is the equivalent way of doing the following in PHP? I tried this
syntax in PHP, it doesn't work.
I can do this in perl
say each line are in this format
file 1: myfile2_ext.txt
file 2: myfile2_ext.txt
:
:
foreach (@lines)
if (/file (.*): (.*)_ .*.txt/) {
ehco("$2<br>")
}
I will get:
myfile1
myfile2
---Sonia
---Sonia