BTW, the regexp as given did not match, so $txt did not start with a space.
In reply to Re: regex problem (again) by JavaFan in thread regex problem (again) by sweepy838