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

Not able to create expressions for OR and AND type statements #288

Open
AkhileshShahare opened this issue Jun 22, 2021 · 0 comments
Open

Comments

@AkhileshShahare
Copy link

AkhileshShahare commented Jun 22, 2021

Hi @shreyasminocha and @ionutvmi,

Thank you for this amazing library!

I have been trying to generate a regex for the following statements:

  1. There is no entry for min-power-bark or max-power-bark in the text
  2. The values for min-power-bark is 9 and max-power-bark is 127

Expressions I have tried, but I am able to get them to work:

1. VerEx()
  .beginCapture()
  .not(min)
  .or()
  .not(max)
  .endCapture();

Regex : /(?:((?!min-power-bark))|(?:(?!max-power-bark)))/gm
2. VerEx()
.beginCapture()
  .then(min-power-bark+ ": ")
  .beginCapture()
    .digit()
    .repeatPrevious(1)
  .endCapture()

Regex: /((?:min-tx-power\: )(\d{1}))/gm

Could anyone please help me with this ?

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