Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

the implementation of regular expressions in javascript. #324

Unanswered
letochagone asked this question in Q&A
Discussion options

I would like to have the texts explaining the implementation of regular expressions in javascript.
So in the following example:

"abc".match(/x*/g)

the result is an array : [ "", "", "", "" ],
4 empty strings.
The explanation is, perhaps, that Javascript finds empty strings in the following locations: (I note "-" for an empty string)
`

-A-B-C-

`
In short, what I'm looking for is where to find the link that explains this result, who decided on this result.

N.-B: I asked on stackoverflow but I didn't get the answer I was looking for.

[https://stackoverflow.com/questions/77047894/i-dont-understand-how-an-elementary-rational-expression-works]

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
🙏
Q&A
Labels
None yet
1 participant
Morty Proxy This is a proxified and sanitized view of the page, visit original site.