Regular expressions - Replace one asterisk with two
Posted: Wed Aug 13, 2003 6:22 pm
I need to change in many SAS programs one-asterisk comments with two-asterisk comments and insert a space after the second asterisk. The comments are following a semicolon.
Example, the following line:
data a; *create data a;
shuld change into:
data a; ** create data a;
I figured out:
Find What: "; \x2a\\[:a-z:]" (without the quotes)
but I can't do the:
Replace With:
Of course, I don't want to replace 2 asterisks with 3 asterisks.
Example, the following line:
data a; *create data a;
shuld change into:
data a; ** create data a;
I figured out:
Find What: "; \x2a\\[:a-z:]" (without the quotes)
but I can't do the:
Replace With:
Of course, I don't want to replace 2 asterisks with 3 asterisks.