Mar 9, 2011 #1 deejayAr Technical User Mar 20, 2008 126 US How can I write regular expression that replace https://localhost/Sm.Services/BatchService.svc/invoketo http://localhost:20001/Sm.Services/BatchService/invoke any help will be nice thanks,
How can I write regular expression that replace https://localhost/Sm.Services/BatchService.svc/invoketo http://localhost:20001/Sm.Services/BatchService/invoke any help will be nice thanks,
Mar 14, 2011 Thread starter #2 deejayAr Technical User Mar 20, 2008 126 US help please Upvote 0 Downvote
Mar 14, 2011 #3 jmeckley Programmer Jul 15, 2002 5,269 US Code: var port = 20001; var origin = "[URL unfurl="true"]https://localhost/Sm.Services/BatchService.svc/invoke"[/URL] url = origin.replace("[URL unfurl="true"]https://",[/URL] "[URL unfurl="true"]http://").replace("localhost",[/URL] string.format("localhost:{0}", port)); Jason Meckley Programmer faq855-7190 faq732-7259 Upvote 0 Downvote
Code: var port = 20001; var origin = "[URL unfurl="true"]https://localhost/Sm.Services/BatchService.svc/invoke"[/URL] url = origin.replace("[URL unfurl="true"]https://",[/URL] "[URL unfurl="true"]http://").replace("localhost",[/URL] string.format("localhost:{0}", port)); Jason Meckley Programmer faq855-7190 faq732-7259
Mar 14, 2011 Thread starter #4 deejayAr Technical User Mar 20, 2008 126 US thanks but I think I ask wrong question let me say right this time I'm using UrlRewriter from http://urlrewriter.net/and need to use regular expression in <rewriter> <rewrite url="https://localhost/Sm.Services/BatchService.svc/invoke"to="http://localhost:20001/Sm.Services/BatchService/invoke"/> </rewriter> can you please help build regular expression Upvote 0 Downvote
thanks but I think I ask wrong question let me say right this time I'm using UrlRewriter from http://urlrewriter.net/and need to use regular expression in <rewriter> <rewrite url="https://localhost/Sm.Services/BatchService.svc/invoke"to="http://localhost:20001/Sm.Services/BatchService/invoke"/> </rewriter> can you please help build regular expression
Mar 16, 2011 Thread starter #5 deejayAr Technical User Mar 20, 2008 126 US please help Upvote 0 Downvote
Mar 16, 2011 #6 ca8msm Programmer May 9, 2002 11,327 GB Try http://www.regexlib.com for help tuning whatever expression you've come up with so far... Mark, Darlington Web Design[tab]|[tab]Experts, Information, Ideas & Knowledge[tab]|[tab]ASP.NET Tips & Tricks Upvote 0 Downvote
Try http://www.regexlib.com for help tuning whatever expression you've come up with so far... Mark, Darlington Web Design[tab]|[tab]Experts, Information, Ideas & Knowledge[tab]|[tab]ASP.NET Tips & Tricks