Re: [PHP] Removing UTF-8 from text

2007-01-05 Thread Richard Lynch
On Thu, January 4, 2007 6:30 pm, Roman Neuhauser wrote: > # [EMAIL PROTECTED] / 2007-01-04 16:19:19 -0600: >> On Thu, January 4, 2007 2:28 am, Roman Neuhauser wrote: >> > # [EMAIL PROTECTED] / 2007-01-04 08:21:37 +0200: >> >> to grasp, so I use the English version. That may not be a problem >> >> f

Re: [PHP] Removing UTF-8 from text

2007-01-05 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-05 11:05:48 +0200: > On 05/01/07, Roman Neuhauser <[EMAIL PROTECTED]> wrote: > >The syntax is very dense which makes it easy to forget if you don't > >practise. On the other hand, it's very easy to stay in form: regular > >expressions are everywhere, even the Perl-comp

Re: [PHP] Removing UTF-8 from text

2007-01-05 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-04 16:19:19 -0600: > On Thu, January 4, 2007 2:28 am, Roman Neuhauser wrote: > > # [EMAIL PROTECTED] / 2007-01-04 08:21:37 +0200: > >> to grasp, so I use the English version. That may not be a problem > >> for you, but it is for me. > > > > Your written English is very

Re: [PHP] Removing UTF-8 from text

2007-01-05 Thread Dotan Cohen
On 05/01/07, Roman Neuhauser <[EMAIL PROTECTED]> wrote: The syntax is very dense which makes it easy to forget if you don't practise. On the other hand, it's very easy to stay in form: regular expressions are everywhere, even the Perl-compatible ones. I suppose it's rather easy to stay physica

Re: [PHP] Removing UTF-8 from text

2007-01-05 Thread Dotan Cohen
On 05/01/07, Richard Lynch <[EMAIL PROTECTED]> wrote: On Wed, January 3, 2007 2:41 pm, Dotan Cohen wrote: > On 03/01/07, Richard Lynch <[EMAIL PROTECTED]> wrote: >> Instead of trying to strip the UTF stuff out, try to capture the >> part >> you want: >> >> preg_match_all('|<[^>]>|ms', $emails, $o

Re: [PHP] Removing UTF-8 from text

2007-01-04 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-04 16:17:18 -0600: > I don't mind answering Regex questions (PHP-related) because I know it > took me *years* to even come close to being able to do anything with > PCRE that wouldn't have been done faster/easier with str_replace and > friends. The syntax is very dens

Re: [PHP] Removing UTF-8 from text

2007-01-04 Thread Richard Lynch
On Thu, January 4, 2007 2:28 am, Roman Neuhauser wrote: > # [EMAIL PROTECTED] / 2007-01-04 08:21:37 +0200: >> On 03/01/07, Roman Neuhauser <[EMAIL PROTECTED]> wrote: >> > >> >It's for "Did you know that the syntax is described in the manual? >> Did >> >you know that PHP has a manual on the web? It'

Re: [PHP] Removing UTF-8 from text

2007-01-04 Thread Richard Lynch
On Wed, January 3, 2007 3:46 pm, Roman Neuhauser wrote: > # [EMAIL PROTECTED] / 2007-01-03 22:41:54 +0200: >> On 03/01/07, Richard Lynch <[EMAIL PROTECTED]> wrote: >> >Instead of trying to strip the UTF stuff out, try to capture the >> part >> >you want: >> > >> >preg_match_all('|<[^>]>|ms', $email

Re: [PHP] Removing UTF-8 from text

2007-01-04 Thread Richard Lynch
On Wed, January 3, 2007 2:41 pm, Dotan Cohen wrote: > On 03/01/07, Richard Lynch <[EMAIL PROTECTED]> wrote: >> Instead of trying to strip the UTF stuff out, try to capture the >> part >> you want: >> >> preg_match_all('|<[^>]>|ms', $emails, $output); >> var_dump($output); >> > > Richard, I do have

Re: [PHP] Removing UTF-8 from text

2007-01-03 Thread Dotan Cohen
On 04/01/07, Roman Neuhauser <[EMAIL PROTECTED]> wrote: Your written English is very good. If you can understand what you wrote and can read replies (in English) from the list, you should have no problems understanding the manual. Thank you. Like said, I do prefer the English manual over the

Re: [PHP] Removing UTF-8 from text

2007-01-03 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-04 08:21:37 +0200: > On 03/01/07, Roman Neuhauser <[EMAIL PROTECTED]> wrote: > > > >It's for "Did you know that the syntax is described in the manual? Did > >you know that PHP has a manual on the web? It's at http://www.php.net/";. > > > > Thank you Roman. Yes, I am f

Re: [PHP] Removing UTF-8 from text

2007-01-03 Thread Chris
Dotan Cohen wrote: On 03/01/07, Richard Lynch <[EMAIL PROTECTED]> wrote: Instead of trying to strip the UTF stuff out, try to capture the part you want: preg_match_all('|<[^>]>|ms', $emails, $output); var_dump($output); Richard, I do have a working script now, but I'm intrigued by your regex

Re: [PHP] Removing UTF-8 from text

2007-01-03 Thread Dotan Cohen
On 03/01/07, Roman Neuhauser <[EMAIL PROTECTED]> wrote: It's for "Did you know that the syntax is described in the manual? Did you know that PHP has a manual on the web? It's at http://www.php.net/";. Thank you Roman. Yes, I am familiar with the php manual. I've referenced the manual hunderds

Re: [PHP] Removing UTF-8 from text

2007-01-03 Thread Al
Correction... If your text is truly multiline, as you've shown, then you do need the 'M' Al wrote: You can use anything for delimiters "|" e.g., I like "%" m is for multiline, which I don't think you want here. s is for "dotall"; but, I don't see his dot. I try to avoid using dotall; it is t

Re: [PHP] Removing UTF-8 from text

2007-01-03 Thread Al
You can use anything for delimiters "|" e.g., I like "%" m is for multiline, which I don't think you want here. s is for "dotall"; but, I don't see his dot. I try to avoid using dotall; it is too hard to think of everything it can include. Dotan Cohen wrote: On 03/01/07, Richard Lynch <[EMA

Re: [PHP] Removing UTF-8 from text

2007-01-03 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-03 22:41:54 +0200: > On 03/01/07, Richard Lynch <[EMAIL PROTECTED]> wrote: > >Instead of trying to strip the UTF stuff out, try to capture the part > >you want: > > > >preg_match_all('|<[^>]>|ms', $emails, $output); > >var_dump($output); > > > > Richard, I do have a w

Re: [PHP] Removing UTF-8 from text

2007-01-03 Thread Dotan Cohen
On 03/01/07, Richard Lynch <[EMAIL PROTECTED]> wrote: Instead of trying to strip the UTF stuff out, try to capture the part you want: preg_match_all('|<[^>]>|ms', $emails, $output); var_dump($output); Richard, I do have a working script now, but I'm intrigued by your regex. Why do you surroun

Re: [PHP] Removing UTF-8 from text

2007-01-03 Thread Richard Lynch
On Wed, January 3, 2007 11:51 am, Dotan Cohen wrote: > I have many email address that are stored like this: > "=?UTF-8?B?15jXqNeR15XXp9eZ16DXlCDXnteo15nXkNeg15Q=?=" > <[EMAIL PROTECTED]>, > "×™× ×¦×Ÿ מריה" <[EMAIL PROTECTED]>, > "לי ×¤×•×œ×™× ×”" <[EMAIL PROTECTED]> > > I'm trying to run a

Re: [PHP] Removing UTF-8 from text

2007-01-03 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-03 19:51:56 +0200: > I have many email address that are stored like this: > "=?UTF-8?B?15jXqNeR15XXp9eZ16DXlCDXnteo15nXkNeg15Q=?=" <[EMAIL PROTECTED]>, > "=?UTF-8?B?15nXoNem158g157XqNeZ15Q=?=" <[EMAIL PROTECTED]>, > "=?UTF-8?B?15zXmSDXpNeV15zXmdeg15Q=?=" <[EMAIL PROTEC

[PHP] Removing UTF-8 from text

2007-01-03 Thread Dotan Cohen
I have many email address that are stored like this: "=?UTF-8?B?15jXqNeR15XXp9eZ16DXlCDXnteo15nXkNeg15Q=?=" <[EMAIL PROTECTED]>, "=?UTF-8?B?15nXoNem158g157XqNeZ15Q=?=" <[EMAIL PROTECTED]>, "=?UTF-8?B?15zXmSDXpNeV15zXmdeg15Q=?=" <[EMAIL PROTECTED]> I'm trying to run a script that will leave the fi