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
> 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
2 matches
Mail list logo