What I want to do is find somehting like this:
happyXgolucky
Where happy is either hardcoded text, or text matched using other metacharacters. X is a positive integer, whose exact value is unknown. golucky is the same (in terms of what it is, not exact value) as happy.
I want to replace that text with:
intelXinside
Where X is the same number from before, and intel and inside are in the same boat as happy as before.
The trick in all this is basically to keep a variable (as in changing) peice of text through a regular expression and then stick it in there at the end.
And I'm very new at regular expression in general. Thanks for any help in advance
🙂