D
D
danya5and212017-11-09 14:51:01
Regular Expressions
danya5and21, 2017-11-09 14:51:01

Adjust regular expression \r\n to search for a sentence separated by commas by 2 lines. How to return in one line?

in notepad++
In the "find" field \r\n
In the "replace" field ,
054. Antibacterial therapy of acute pyelonephritis that
has developed in a patient with myasthenia gravis should be prescribed

a) ampicillin
b) gentamicin
c) carbenicillin
d) cephalosporins
058. Positive hemodynamic effect nitroglycerin
in the treatment of coronary heart disease
complicated by heart failure is due to

a) a decrease in venous inflow
b) an increase in cardiac output
c) an increase in peripheral resistance
d) a decrease in coronary blood flow
062. Glucocorticosteroids cause
a) suppression of antibody formation
b) inhibition of granulation formation
c) stimulation of gluconeogenesis from proteins
and suppression of glucose utilization by peripheral tissues

d) decrease in hyaluronidase activity e
) all of the above
in one line. The macro is needed.
058. The positive hemodynamic effect of nitroglycerin in the treatment of coronary heart disease complicated by heart failure is due to
a) a decrease in venous inflow
b) an increase in cardiac output
c) an increase in peripheral resistance
d) a decrease in coronary blood flow
062. Glucocorticosteroids cause
a) inhibition of antibody formation
b) delay in granulation formation
c) stimulation of gluconeogenesis from proteins and suppression of glucose utilization by peripheral tissues
d) decrease in hyaluronidase activity
e) all of the above
Or at least that \r\n find me a question and move on to the next question numerasia replaced in one line. There I will do it in one line and create a macro for 100 questions.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
danya5and21, 2017-11-09
@danya5and21

Solution:
Notepad++ (Replace, regular expression mode enabled)
Find: (^(?![abvgdez]\)).+)
Replace with: \1#
# is a technical symbol, you can use any other, the main thing is that it is not in the text met.
Next:
Find: #\r\nа\)
Replace with: \r\nа\)
a - Russian!!!
Next:
Find:#\r\n
Replace with:empty
Everything has been exhausted))) I have been looking for a solution for 3 years. We study calmly.
I will be glad to your suggestions.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question