Re: removing character from string (regular expresion)

2007-01-15 Thread Rob Dixon
Sayed, Irfan (Irfan) wrote: Hi All, I have one variable $feature which contains value as "feature level: 2". Now i need to remove "feature level: " and need only 2 as a output. I mean from the value "feature level: 2" i need only 2. Basically i need to trucate/remove "feature level: ". I

Re: removing character from string (regular expresion)

2007-01-15 Thread Tom Phoenix
On 1/15/07, Sayed, Irfan (Irfan) <[EMAIL PROTECTED]> wrote: I have one variable $feature which contains value as "feature level: 2". Now i need to remove "feature level: " and need only 2 as a output. $feature = s/feature level: //g; What do you think the /g is doing? Check the documentatio

removing character from string (regular expresion)

2007-01-15 Thread Sayed, Irfan \(Irfan\)
Hi All, I have one variable $feature which contains value as "feature level: 2". Now i need to remove "feature level: " and need only 2 as a output. I mean from the value "feature level: 2" i need only 2. Basically i need to trucate/remove "feature level: ". I tried in the following way $fe