Hi Everyone- I am trying to match a string pattern like the following: ?1234.htm I would then like to extract the 1234 from the pattern and sub 1234.html for the pattern. Anyone know how to do this? Is there a simpler way than re? Thanks. SA -- "I can do everything on my Mac I used to on my PC. Plus a lot more ..." -Me