tags:

views:

35

answers:

1

i need to check if a string is available in given prolog statement

example

related('also-5','be-8').

i want to check if be is there in this statement how to do?

please give me some link to detailed tutorial on string handling in prolog

A: 

Relevant sections in the SWI-Prolog manual:

  • Analysing and Constructing Atoms
  • Representing text in strings
Kaarel