Skip to main content

From html-text "<a alt="Molen (molenromp) information" href="/monument/53454/molen-molenromp/plaats/">" I want to grep the "/monument/53454/molen-molenromp/plaats/"-part. Therefore I use @SubstringRegularExpression("<a alt="Molen (molenromp) information" href="/monument/53454/molen-molenromp/plaats/","\\/([a-z0-9/-])*",0,0,1,caseSensitive=TRUE) but this only returns "/53454/molen-molenromp/plaats/" (so looses the first part /monument).

According the very usefull site https://regexr.com/ the reg. expr. "([a-z0-9/-])*" on "<a alt="Molen (molenromp) information" href="/monument/53454/molen-molenromp/plaats/">" though results in "/monument/53454/molen-molenromp/plaats/". What do I do wrong? Attached a workbench with the conversion.

It might be a different regex parser being used, that particular regex does seem to give the right result if you use it in a StringSearcher


Reply