in reply to Displaying the column number when reading a file
If you are using a regular expression to find the character you could use len($`) + 1, or you could use index
/J\