Re: Regular Expressions
| From: | Jacob Vennervald | Date: | Thu, 16 Oct 2003 12:46:39 +0000 |
| Subject: | Re: Regular Expressions | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-166289@lists.php.net to get a copy of this message | ||
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