Open bergamin opened 6 years ago
Currently the regex needs to be a JavaScript regex in a .js
or .ts
file, e.g.:
/^group (\d+)/
You can then click on 'Not adding /gm' in the status bar to toggle that:
I'm new to regex and I didn't know different languages used different syntaxes. Unfortunately that syntax won't work on my application as I need the groups to follow the ?<groupName>
pattern.
Thank you for your help. I'll edit the issue, so it becomes a suggestion for your extension to accept the regex used in Java.
Currently the regex needs to be a JavaScript regex in a
.js
or.ts
file, e.g.:/^group (\d+)/
You can then click on 'Not adding /gm' in the status bar to toggle that:
This should be clear in document. I take 15 mins to get it (save regex in .js file)
I would like to see this extension accepting Java version of regex as well and for changing from one version to the other, you could use the syntax highlighting being applied to the current file (instead of checking the filetype. We will not always have a file with our regex).
This issue was edited. Original Request:
Original title: Ctrl+Alt+M opens a new tab for inserting data to be verified, but nothing is validated
I've just installed your extension because regex101.com is really slow in my office computer and I thought it could help me build regexes faster and more easily.
But when I hit Ctrl+Alt+M in the file where I have my regex String, nothing happens other than just a new tab being opened on the side. The content of that tab is not being validated by the regex on the left, even though most of the lines are actually valid as I verified them in regex101.com. Check below a screenshot of what I see when I hit Ctrl+Alt+M (unfortunately, I can't show the data itself, so I changed it. Also, adding "/gm" as suggested in the bottom doesn't help):
Should I do something else like setting the base file where the regex is the same way we do for comparing files? Your Wiki is empty and the readme only explains about Ctrl+Alt+M...
Thank you very much