I want to match with P character all charters after P and between newline character.
What I've tried is "P. * \ n", which clearly still matches P, but I want all the characters after p and before the newline.
Somebody knows?
You can try this:
(?<=P).*(?!\n)
Positive lookbehind for P, then negative lookahead for newline.
Edited my original answer.
just use:
p(.*)
make sure you are not using the multipart regex option.
What about:
P(.*?)\n
The characters you want are in group 1
You may try:
From the hero Regex