Skip to content

Help with string tokenization #2453

Answered by quentin
kpadmasola asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,
The easiest way, if that's an option, would be to prepare the input data to match your requirement.

Otherwise, by default Souffle only offers strlen and substr. It is not very convenient but in association with range you can access individual characters of the input string and then recursively build sequences of consecutive characters. Something along this line.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by kpadmasola
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants