Possible Duplicate:
Finding the N th Occurrence of a Match line
I have multi-line text with:
- ship
- plane
- ship
- car
I want to find the 1st occurrence of “ship” in a line and output:
The ship is a 1’st one.
I want find 2nd occurrence of “ship” in a line and output:
The ship is a 2’nd one.
&ORDwill take care of your ordinal suffixes.