[PHP] using eregi_replace to replace only substrings -- not the entire string.

2001-08-13 Thread Kurt Lieber
I'm trying to update a number in a text file using eregi_replace. The original line is: $registrationLimit = 100; and I'd like to change it to: $registrationLimit = 300; now, 100 appears multiple times throughout the file, so I have to match on the whole string, not just 100. I used the

Re: [PHP] using eregi_replace to replace only substrings -- not the entire string.

2001-08-13 Thread David Robley
On Tue, 14 Aug 2001 12:23, Kurt Lieber wrote: I'm trying to update a number in a text file using eregi_replace. The original line is: $registrationLimit = 100; and I'd like to change it to: $registrationLimit = 300; now, 100 appears multiple times throughout the file, so I have to