Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

regex support #320

Open
dcsan opened this issue Aug 6, 2019 · 0 comments
Open

regex support #320

dcsan opened this issue Aug 6, 2019 · 0 comments

Comments

@dcsan
Copy link
Contributor

dcsan commented Aug 6, 2019

there doesn't seem to be an open issue for regex at the moment
I recall there was a working doc somewhere to discuss this
but hope you don't mind if i make an issue here.

this is a missing feature for rivescript that means it can't be used effectively for non-latin languages chinese/japanese etc.
the simplied regex syntax depends on spaces which doesn't work

and also the ? syntax which is to find a single word in a phrase

#262 (comment)

BotML has first class support for regex and also some interesting ways to inline javascript for conditional testing
https://github.com/codename-co/botml#regular-expression

~ listen_email
< Your email please?
> *{email}
---
  ` !/^.+@.+\..+/.test('$email')
  < This email $email seems not legit!

perhaps there is some inspiration there?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant