I have a little problem on RegEx pattern in c#. Here's the rule below:
input: 1234567 expected output: 123/1234567
Rules:
- Get the first three digit in the input. //123
- Add /
- Append the the original input. //123/1234567
- The expected output should looks like this: 123/1234567
here's my regex pattern:
regex rx = new regex(@"((\w{1,3})(\w{1,7}))");
but the output is incorrect. 123/4567