Relative Content

Tag Archive for cregexstring

Regex Check sequence of Length n, than must contain character k once, that could be in any position of sequence

Im writing battleship valdiator on C# and want to use Regex to deal with it. Particulary, Im trying to check, that some characters are RIGHT OVER OTHER ones. So i`m using codeblock, that should do like that(i hope you will decode me): Regex.Matches(fieldS,
“000000([0-9]+at least one instance ofn){strlength-“000000”.Length}011110([0-9]+at least one instance ofn){strlength-“011110”.Length}000000″)