Someone would know the regex expression can be used (in notepad++) in order to replace the first occurence of a characters group in each line?
eg:
abcdefg//ijkl//m.
qsdflkj//sdqlmkf//jqsmdl.
to
abcdefg\\ijkl//m.
qsdflkj\\sdqlmkf//jqsmdl.
so replace //
by \\
in each line, but only the first occurence of , not the next.
If regex can't achieve it, is there another method with notepad. If not, I will code a program to split line and do the job, but need more time.
Thnaks in advance.
^[^/]+\K//
\\\\
Explanation:
Replacement:
Result for given example:
Enter this regex in
Find what
fieldEnter this in
Replace with
fieldSelect
Regular expression
inSearch Mode
and Uncheck. matches newline