Re: [PHP] A little regex help

2002-12-14 Thread Justin French
Not sure if it will be quicker or not, but I don't think you NEED a regex: - get rid of 'for more information' - split on 'See' into $pre and $code - trim the bits down - wrap $code in a URL - glue it all back together UNTESTED CODE: http://support.microsoft.com/default.aspx?scid=kb;en-us;";; $su

Re: [PHP] A little regex help

2002-12-13 Thread 1LT John W. Holmes
> I'm trying to work out the regex needed to split either one of the > following lines > > Windows 2000 Hotfix (Pre-SP4) See Q322842 for more information > Windows XP Hotfix (SP2) See Q327696 for more information > > Into one of these > > Windows 2000 Hotfix (Pre-SP4) See href='http://support.micr

[PHP] A little regex help

2002-12-13 Thread Gareth Hastings
Hi, I'm trying to work out the regex needed to split either one of the following lines Windows 2000 Hotfix (Pre-SP4) See Q322842 for more information Windows XP Hotfix (SP2) See Q327696 for more information Into one of these Windows 2000 Hotfix (Pre-SP4) See Q 322842 for more information Window