-
Notifications
You must be signed in to change notification settings - Fork 30.7k
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
Javascript Regex Lookbehind not working #79495
Comments
(Experimental duplicate detection) |
According to #70156 these aren't supported in PCRE2, which is what VSCode uses. |
@msilberg if you perform Find (in current file) than JS RegExp engine is used and it supports non-fixed length lookbehind. Adding better error message and hiding incorrect notification is tracked in #79109 /duplicate #79109 UPD. If you have problem with Find (in current file) or you are sure that you use PCRE2 compatible expression in Find in Files - please provide more details. |
Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for existing issues here. See also our issue reporting guidelines. Happy Coding! |
Issue Type: Bug
Unfortunately Vscode does not suppport Regex with neither negative nor positive lookbehinds (e.g. (?<=.) ). It always marks it as incorrect.
VS Code version: Code 1.37.0 (036a6b1, 2019-08-08T01:24:14.598Z)
OS version: Linux x64 5.0.0-23-generic
System Info
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
oop_rasterization: disabled_off
protected_video_decode: unavailable_off
rasterization: disabled_software
skia_deferred_display_list: disabled_off
skia_renderer: disabled_off
surface_synchronization: enabled_on
video_decode: unavailable_off
viz_display_compositor: disabled_off
webgl: enabled
webgl2: enabled
The text was updated successfully, but these errors were encountered: