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

// inline comment not yet supported. #1

Open
egberts opened this issue Mar 8, 2022 · 1 comment
Open

// inline comment not yet supported. #1

egberts opened this issue Mar 8, 2022 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@egberts
Copy link
Owner

egberts commented Mar 8, 2022

I know, I know, I know.... // inline comment is not yet supported.

But, but ... BUT I have a working Regex pattern for this. It is:

(((\x27[ \!\"\#\$\%\&\(\)\*\+\-\.\/0-9\:\;\<\=\>\?@A-Z\[\\\]\^\_\`a-z\|\~]*\x27\s*)|(\"[ \!\#\$\%\&\x27\(\)\*\+\-\.\/0-9\:\;\<\=\>\?@A-Z\[\\\]\^\_\`a-z\|\~]*\"\s*)|(\/([ \!\$\%\&\(\)\*\+\-\.0-9\:\<\=\>\?@A-Z\[\]\^\_\`a-z\|\~]+[ \!\$\%\&\(\)\*\+\-\.0-9\:\<\=\>\?@A-Z\[\]\^\_\`a-z\|\~]*)|([ \!\$\%\&\(\)\*\+\-\.0-9\:\<\=\>\?@A-Z\[\]\^\_\`a-z\|\~]*))*)*)([;#]+)*.*$

That regex has demonstrably worked on many online Regex testers:

Couldn't get it to work with the following online regex tester(s):

Just need a bit of major Bash-FU going on... and is on-going.

@egberts egberts added enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers labels Mar 12, 2024
@egberts
Copy link
Owner Author

egberts commented Mar 12, 2024

If you are a REGEX-BASH expert, can you translate that into a BASH shell string variable assignment?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant