CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Threaded View

  1. #2
    Join Date
    Mar 2011
    Posts
    144

    Re: Performing RegEx on open file

    I found a better way of how to open a file. But I need help trying to match a url using boost::xpressive. I got the following off the web that doesn't match anything, other examples I tried throw a compile error. Does anyone know of a boost compatible regex to match a URI? I tried to match using this but I'm not sure if I'm escaping correctly -
    Code:
    sregex::compile("(\?:ftp\|https\?:\/\/)\+(\?:\\S+\.)\+(\?:\\S\.)\+(\?:\S)\+");
    Last edited by drwbns; January 12th, 2013 at 03:34 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured