We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Sometimes the fname will be parsed as (I've no idea why it happens in that way):
fname
C:\Program Files (x86)\vim\[18*No Name]
So the result of regex matchstr(fname, '\d\+') will be 86, which is obviously incorrect.
matchstr(fname, '\d\+')
86
The text was updated successfully, but these errors were encountered:
You can use str2nr(matchstr(matchstr(fname, '\[\d\+\*No Name\]$'), '\d\+')) to solve it.
str2nr(matchstr(matchstr(fname, '\[\d\+\*No Name\]$'), '\d\+'))
Sorry, something went wrong.
fixed issue d11wtq#9 and d11wtq#10
b199dd8
ea69233
c4d2457
No branches or pull requests
Sometimes the
fname
will be parsed as (I've no idea why it happens in that way):C:\Program Files (x86)\vim\[18*No Name]
So the result of regex
matchstr(fname, '\d\+')
will be86
, which is obviously incorrect.The text was updated successfully, but these errors were encountered: