Question: Please provide regular expressions plz not c++ code!!! Assume you have a C++ source file which you edit using the BBEdit editor (barebones.com). You need
Please provide regular expressions plz not c++ code!!!
Assume you have a C++ source file which you edit using the BBEdit editor (barebones.com). You need to replace all comments in the /* ... */ style that span a single line with the same comment in the // ... style. This can be done using the Find/Replace Grep feature. You are required to provide the two regular expressions corresponding to Find and Replace boxes. Comments spanning more than one line should not be affected. You are not required to handle strings containing comment-like strings, that is, such pseudo-comments would be replaced as well. You will need to use the backreference feature: subpatterns captured by Find can be identified by enclosing them in parentheses, (...), and then used in Replace with \1,\2,... in the order they appear in Find.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
