Boost logo

Boost Users :

From: JD (jean.daniel.michaud_at_[hidden])
Date: 2007-04-11 04:07:10


Jeff wrote:
> Dear forum members:
>
> I’m hoping that someone can copy and compile the code below and tell me what is
> wrong with my expression. I am trying to write a pattern that produces the
> following match and submatch:
>
> MATCH:
> TEST #1
>
> SUBMATCH:
> http://test1.com
>
>

Hi Jeff,

   Your code does not compile but you should check out this website:
http://www.cuneytyilmaz.com/prog/jrx/

   I use it every time I am playing with regexp.
   I found out that this expression might suite your needs:

<a href\s*=\s*\"(.*?)>(.*?)<\/a>

   Note the backslashed slash ("\/") at the end of the expression.
   Hope this helps.

   PS: on the website I gave you, untick all options but "split input".

JD


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net