Web Hosting Talk







View Full Version : Help, I want to parse the sentences


swijaya0101
06-28-2002, 04:10 AM
Hello,

example I have the following variable :

$variable="/u01/odbms/batch/interface/download/storenumber/*.*,this is the sample"

What is the command if I would like to get the storenumber word only?

thanks

mwatkins
06-28-2002, 09:48 AM
is store number always in that position? Always after the entire preceeding string, always before /*.* ?

PHP or Perl?

swijaya0101
06-28-2002, 12:04 PM
ksh scripting ... yes it's always in that location