preg_replace("/aIone/", "alone", "I am not aIone");

But you don't need regular expressions for this.

Jacob

On Thu, 2003-10-16 at 14:35, Shmuel wrote:
> I have a misspelled sentence like this: "I am not aIone".
> I want to change the capital I to small l, but only in
> the beginning of a word.
> 
> How is this done in regular expression ?
> 
> Any help appreciated.
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 
-- 
Venlig hilsen / Best regards,
Jacob Vennervald
System Developer
Proventum Solutions ApS
Tuborg Boulevard 12
2900 Hellerup
Denmark
Phone:  +45 36 94 41 66
Mobile: +45 61 68 58 51

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to