Regex: more than one identical character next to each other?
-
Hello all, I'm a newbie to regex and need some help. What I want to do is to check if a filename contains two or more _ beneath each other. For example: painting__test.pdf or painting___test2.pdf those should be replaced by only one _ hope you can assist in solving. kind regards Franz-Georg
-
Hello all, I'm a newbie to regex and need some help. What I want to do is to check if a filename contains two or more _ beneath each other. For example: painting__test.pdf or painting___test2.pdf those should be replaced by only one _ hope you can assist in solving. kind regards Franz-Georg
Find
_{2,}
and replace with_
. regex101: build, test, and debug regex[^]
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer