Page 1 of 1

Regular expressions matching as a predicate

Posted: 11 May 2020 17:00
by backtracking
Does Visual Prolog 9 accept as a predicate the matching of a string with a regular expression ?
If the answer is positive, where may I found in the documentation examples of this use ?

I know that SWI-Prolog has this kind of predicate and I would be glad to have it with Visual Prolog.

Re: Regular expressions matching as a predicate

Posted: 12 May 2020 16:02
by Thomas Linder Puls
There is a regEx class which contains predicates for searching and replacing.

If you write regEx in an editor in the IDE and place the caret in the name and press F1 you should be brought to the relevant documentation.

Re: Regular expressions matching as a predicate

Posted: 13 May 2020 14:40
by backtracking
Thank you for the informations. The use of the Boost library for these Regex predicates is excellent.