vendredi 25 octobre 2019

Trouble with C++11 regex_search

I run into a very 'simple' problem I seem unable to find a solution to for the past hour.

Consider the example: example

I'm trying to capture directory names (i.e any sequences of following characters that are not '\'); seems like a basic REGEX:

[^\/]+

it works in other engines; I've tried escaping '/' in various ways. other basic character groups like [a-z] doesn't seem to work for me neither.

what am I missing?

Aucun commentaire:

Enregistrer un commentaire