Quantcast
Channel: CodeProject Latest postings for Regular Expressions
Viewing all articles
Browse latest Browse all 224

Regex: more than one identical character next to each other?

$
0
0
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

Viewing all articles
Browse latest Browse all 224

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>