Is not string manipulation is not applicable in your case? A very simplistic way: 1. Check if the URL starts with "http://" or by the given base URL 2. If not, copy the base URL and then the relative URL with a '/' separator But things can be much more complicated than this... Relative URL can contain leading slashes to indicate to starting from the wwwroot, or "../" or something like that to relative from the current directory etc. You may also need to handle these too but I do not think if there is anything which cannot be handled by normal string manipulation. You may can also try to port a regex engine and then adopting the Perl examples you found, however, it may need much more resources than would easily fit into your chip -- I have never tried this one so someone else may have a better thoughts on it. Tamas On Wed, May 27, 2009 at 11:43 PM, Harold Hallikainen wrote: > After the recent discussion of regular expressions, I, of course, today > ran in to an application for them, but I have to do this in C30 for a > PIC24. I need to change a relative URL (given the base URL) to an absolute > URL. Everything I'm finding is pretty much using regular expressions in > perl or PHP. Anyone have any other ideas? > > I'll search on... > > Thanks! > > Harold > > > > -- > FCC Rules Updated Daily at http://www.hallikainen.com - Advertising > opportunities available! > -- > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist > -- http://www.mcuhobby.com -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist