Possible Duplicate:
Need a Regular expression to extract 5th to 8th charactors in a string.
I have a string with numeric values for eg: 14150712.M ; I need to extract the numers from index positions 5 to 8. Ans eg: 0712 how can I remove Ist four numbers from the FileName and cut the next four numbers?
Try this regex:
Required data will be matched inside parentheses