The replacement term \15
is being interpreted as "group 15" - you must escape the "5":
Try replacing with \1\\5
, or if that doesn't work (I don't have textwrangler handy) use a look behind:
Search: (?<=text)9
Replace: 5
The look behind doesn't consume input, so only the "9" is matched.