Re: [Cppcms-users] non-greedy moint points
Brought to you by:
artyom-beilis
|
From: Marcel H. <ke...@co...> - 2013-07-15 10:33:21
|
On 15.07.2013 12:19, Artyom Beilis wrote: > You can use nagative look-around > > http://stackoverflow.com/questions/406230/regular-expression-to-match-string-not-containing-a-word > > Something like that > > > cppcms::mount_point("/webapi(/(.*))", 1) > cppcms::mount_point("^(?!/webapi)(/(.*))", 1) > > Not sure about exact syntax but the general idea should be clear, the > second mount point should match all but /webapi Awesome. Never hear of negative look-around regex. It works, thank you. And also thank you Petr, you made me thinking ;) > > Artyom Beilis > -------------- > CppCMS - C++ Web Framework: http://cppcms.com/ > CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ |