Use try + to + verb for an effort that may fail; use try + -ing to test a possible fix.
Use regret + -ing when you are sorry about something you did; regret to say / tell / inform formally breaks bad news.
| Incorrect | Correct | Why |
|---|---|---|
| I tried hard remembering her name, but I couldn't. | I tried hard to remember her name, but I couldn't. | An effort, especially with hard, takes try to: tried hard to remember. |
| I regret to lend him the money. (meaning: I lent it, and I'm sorry) | I regret lending him the money. (meaning: I lent it, and I'm sorry) | To be sorry about something you already did, use the -ing form: regret lending. |