Discussions related to Visual Prolog
backtracking
Posts: 4
Joined: 11 May 2020 16:51

Regular expressions matching as a predicate

Unread post 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.
User avatar
Thomas Linder Puls
VIP Member
Posts: 1398
Joined: 28 Feb 2000 0:01

Re: Regular expressions matching as a predicate

Unread post 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.
Regards Thomas Linder Puls
PDC
backtracking
Posts: 4
Joined: 11 May 2020 16:51

Re: Regular expressions matching as a predicate

Unread post by backtracking »

Thank you for the informations. The use of the Boost library for these Regex predicates is excellent.
Post Reply