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

compile example from README with most recent V 0.1.20 7311db6 #4

Conversation

spytheman
Copy link

@spytheman spytheman commented Sep 30, 2019

With this PR, I get:

Match everything after this: "I <3 VLang!"
"I <3 VLang!"

@spytheman
Copy link
Author

The examples also work:

0[18:43:14] /v/v-regex/examples $ vlang run hello.v
Hello
0[18:43:20] /v/v-regex/examples $ vlang run match_after.v
Match everything after this: "I <3 VLang!"
"I <3 VLang!"
0[18:43:24] /v/v-regex/examples $ vlang run match_all.v

Testing string: This should match... hello
["This should match... ", "hello"]

Testing string: This could match... hello!
["This could match... ", "hello"]

Testing string: More than one hello.. hello
["More than one hello.. ", "hello"]

Testing string: No chance of a match...
["", ""]
0[18:43:29] /v/v-regex/examples $

Tested on Ubuntu 16.04.3 LTS

@spytheman
Copy link
Author

spytheman commented Sep 30, 2019

Closes #3 .
Closes #2 .

@spytheman
Copy link
Author

This repo seems abandoned unfortunately 🤔 .

I've renamed my fork of this repo to:
https://github.com/spytheman/v-regex
... and merged this fix in my master branch there.

If someone wants the updated version that works with latest V, until this is fixed or merged, clone https://github.com/spytheman/v-regex .

@spytheman spytheman closed this Jan 26, 2020
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

Successfully merging this pull request may close these issues.

1 participant