Version of Moodle please?
Do you get a notice like the following first?
"Several tables are not updated as part of the text replacement. These include configuration, log, events, and session tables.
This script should be considered experimental. Changes made cannot be reverted, thus a complete backup should be made before running the script!
type y (means yes) or n (means no)"
First ... did you make a backup of the database as it suggest?
Second ... I know the \\ is supposed to treat the next characters as a 'literal' but wonder if '.''s in the strings without quotes concatate or do some other action.
What happens if you were to put quotes around the strings you want to change:
Rather than //22.214.171.124 this search="126.96.36.199" ... same for replace value.
Also, are you also changing from http:// to https:// (ssl) as well?