Boost logo

Boost Users :

From: John Maddock (john_at_[hidden])
Date: 2006-06-13 05:10:11


> important in HTML since it's just whitespace. For this reason,
> instead of matching a line-break, I match whitespace. This also
> handles indentations correctly. Therefore, I'd use the pattern:
>
> "</tr>\s*</table>\s*</td>\s*</tr>\s*</table>\s*</td>\s*</tr>\s*</table>"

Right but those \'s need to be doubled up to be used in a C++ string:
remember the compiler swallows up the first \ so use

"</tr>\\s*</table>\\s*</td>\\s*</tr>\\s*</table>\\s*</td>\\s*</tr>\\s*</table>"

John.


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