I want a regular expression which is to match the 4th occurrence of hai ( in this example ),
Actually I want a method to match the nth occurrence of a pattern in a string.
can I achieve this using perl regular expression in a straight forward manner
please help me out !