From: Evertjan. on 14 Mar 2010 16:04 Al Dunbar wrote on 13 mrt 2010 in microsoft.public.scripting.vbscript: > "Evertjan." <exjxw.hannivoort(a)interxnl.net> wrote in message > news:Xns9D3962E1955B6eejj99(a)194.109.133.242... >> Al Dunbar wrote on 12 mrt 2010 in >> microsoft.public.scripting.vbscript: >> >>>> The people who like to use RegExp tend to be >>>> a small but fervent crowd. Since nobody has shown >>>> up with an answer I'm guessing that the particular >>>> job of dealing with the URLs doesn't lend itself to >>>> RegExp. >>> >>> Possibly. Or, perhaps more likely, they are just not attracted to a >>> thread whose subject line appears to be about the REPLACE function. >> >> Since a NG is not a helpdesk, many of us expect the OP to do most of >> the work, like learning some Regex himself. > > Yeah, it occurred to me that that might be another reason. > > Too bad he came to the conclusion that dealing with URL's is out of > RegExp's league, though... Perhaps we can help him by helping him conclude that an url is just an alphanumeric string? And that regex is perfect for testing, part matching or manipulating such strings? -- Evertjan. The Netherlands. (Please change the x'es to dots in my emailaddress)
From: James on 14 Mar 2010 18:42 On Mar 15, 7:04 am, "Evertjan." <exjxw.hannivo...(a)interxnl.net> wrote: > Al Dunbar wrote on 13 mrt 2010 in microsoft.public.scripting.vbscript: > > > > > > > "Evertjan." <exjxw.hannivo...(a)interxnl.net> wrote in message > >news:Xns9D3962E1955B6eejj99(a)194.109.133.242... > >> Al Dunbar wrote on 12 mrt 2010 in > >> microsoft.public.scripting.vbscript: > > >>>> The people who like to use RegExp tend to be > >>>> a small but fervent crowd. Since nobody has shown > >>>> up with an answer I'm guessing that the particular > >>>> job of dealing with the URLs doesn't lend itself to > >>>> RegExp. > > >>> Possibly. Or, perhaps more likely, they are just not attracted to a > >>> thread whose subject line appears to be about the REPLACE function. > > >> Since a NG is not a helpdesk, many of us expect the OP to do most of > >> the work, like learning some Regex himself. > > > Yeah, it occurred to me that that might be another reason. > > > Too bad he came to the conclusion that dealing with URL's is out of > > RegExp's league, though... > > Perhaps we can help him by helping him conclude > that an url is just an alphanumeric string? > > And that regex is perfect for testing, > part matching or manipulating such strings? > > -- > Evertjan. > The Netherlands. > (Please change the x'es to dots in my emailaddress)- Hide quoted text - > > - Show quoted text - Thanks Evertjan, and Al, I wouldn't have continued to do this using RegEx if if it wasn't possible. It is my lack of experience using Regular Expressions that is the problem here, not RegEx. Thankfully, this can easily be altered with a little research and practice. Once I become more familure with using Regular Expressions, this method to perform the String replace that i require will be quite suitable. James
From: James on 15 Mar 2010 01:29
Ok, it's working now. Thanks for the advice. James |