Re: [PHP] Regular Expression help need

2008-07-27 Thread Richard Heyes
Before: phi strongRichard/strong, good morninglt;/p After: phi strongRichard/stronggt;, amp; good morninglt;/p By the sounds of it negative look ahead assertions may be of some help. Or look behind assertions. -- Richard Heyes http://www.phpguru.org -- PHP General Mailing List

Re: [PHP] Regular Expression help need

2008-07-27 Thread James Dempster
On Fri, Jul 25, 2008 at 1:08 PM, Shelley [EMAIL PROTECTED] wrote: Hi Richard, Not exactly actually. What I mean is: Before: phi strongRichard/strong, good morninglt;/p After: phi strongRichard/stronggt;, amp; good morninglt;/p I hope it's clear now. On Fri, Jul 25, 2008 at 7:53 PM,

Re: [PHP] Regular Expression help need

2008-07-26 Thread Micah Gersten
Are you talking about looking at blogs in a mobile phone browser or actually downloading the blog into another format? Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com Shelley wrote: Ok, let me tell you what i want to achieve. I want to transfer users'

[PHP] Regular Expression help need

2008-07-25 Thread Shelley
Hi all, How can I make a string with (NOT amp;, gt;, lt; or quot;), , xml compatible? What is the expression to use? Thank you very much. -- Regards, Shelley

Re: [PHP] Regular Expression help need

2008-07-25 Thread Richard Heyes
How can I make a string with (NOT amp;, gt;, lt; or quot;), , xml compatible? What is the expression to use? Not entirely sure what you're after (try posting some before and after snippets), but by the sounds of it you don't need a regular expression - strtr() will work for you. Or

Re: [PHP] Regular Expression help need

2008-07-25 Thread Shelley
Hi Richard, Not exactly actually. What I mean is: Before: phi strongRichard/strong, good morninglt;/p After: phi strongRichard/stronggt;, amp; good morninglt;/p I hope it's clear now. On Fri, Jul 25, 2008 at 7:53 PM, Richard Heyes [EMAIL PROTECTED] wrote: How can I make a string with

Re: [PHP] Regular Expression help need

2008-07-25 Thread Micah Gersten
Are you trying to make it xml compatible or XHTML compatible? '' is not valid HTML or XHTML as it has special meaning. If you want it to adhere to the standard and display correctly, you must use 'amp;' Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com

Re: [PHP] Regular Expression help need

2008-07-25 Thread Shelley
Ok, let me tell you what i want to achieve. I want to transfer users' blog onto mobile phone, so I should convert characters such as , , (but not amp;, or gt;, or lt;, etc) into xml compatible ones, gt;, lt; amp;. Maybe there is some problem in my expression? Waiting for your response... On