I need a regex code which will detect format like this "1-2-2-2-1-5".This can be longer string or shorter like "1-8-5-6".I mean, the length is not entirely clear.But format is certain one int and one '-'. i tried "(^[-][0-9]){,}" this.But i have no idea about Regex. Can someone help me?Thnx.
问问题
173 次