fork download
  1. var oldSid = new RegExp('sid=[0-9]{1,5}x[0-9]{1,5}');
  2. var newSid = 'sid=500x500';
  3. var oldUrl = 'media.php?sid=200x100&mid=100x100';
  4. var newUrl = oldUrl.replace(oldSid, newSid);
  5. print(newUrl);
Success #stdin #stdout 0.01s 4984KB
stdin
Standard input is empty
stdout
media.php?sid=500x500&mid=100x100