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

[Learn]: PositiveLookBehind Not Accepting Working Answer /(?<=\$)\d+/g #63

Closed
mbennette68 opened this issue Nov 17, 2021 · 4 comments
Closed
Assignees
Labels

Comments

@mbennette68
Copy link

Step Number: 47
Step Name: steps.positiveLookbehind.title
Language: en-us


What is the problem you are experiencing?
Can't proceed beyond Positive Look Behind Section even after entering the correct RegEx pattern, which I had to get from the help link:

I am using Safari on MacBook Pro M1 but don't know if issue is the browser or not.

image

Thank you!

@mbennette68 mbennette68 changed the title [Learn]: [Learn]: PositiveLookBehind Not Accepting Working Answer \(?<=\$)\d+\g Nov 17, 2021
@mbennette68 mbennette68 changed the title [Learn]: PositiveLookBehind Not Accepting Working Answer \(?<=\$)\d+\g [Learn]: PositiveLookBehind Not Accepting Working Answer /(?<=\$)\d+/g Nov 17, 2021
@prashnts
Copy link

Apparently this is a Safari issue. I had this in Intel MacBook Pro as well.

More precisely, the console had error: Invalid regular expression: invalid group specifier name

And I found this StackOverflow issue: https://stackoverflow.com/questions/51568821/works-in-chrome-but-breaks-in-safari-invalid-regular-expression-invalid-group

Which links to this caniuse: https://caniuse.com/js-regexp-lookbehind

So, basically not supported on Safari, by the looks of it.

@aykutkardas
Copy link
Owner

Unfortunately Safari doesn't support these "lookbehind" statements. I'm considering adding a warning about this. 😔

You should be able to pass the step when you type the correct expression, even if it doesn't highlight anymore.

#49 (comment)

@aykutkardas aykutkardas self-assigned this Nov 18, 2021
@samkeet
Copy link

samkeet commented Nov 19, 2021

Is there a workaround for this issue on an iPhone? I'm using Safari on iOS 15.1
image

@aykutkardas
Copy link
Owner

CleanShot 2021-11-20 at 00 02 26@2x

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

No branches or pull requests

4 participants