{"json_modified": "2016-07-17T20:25:07.874452", "uuid": "10883680-ff5b-450c-ab8a-0a6d5260b950", "title": "RegExp.prototype[@@replace]()", "url": "/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/@@replace", "tags": ["prototype", "Reference", "RegExp", "Prototype", "Regular Expressions", "JavaScript", "Method"], "translations": [{"uuid": "e4cc9cc3-3712-4adc-bca1-14eeaae2ec38", "title": "RegExp.prototype[@@replace]()", "url": "/fr/docs/Web/JavaScript/Reference/Objets_globaux/RegExp/@@replace", "tags": ["prototype", "RegExp", "R\u00e9f\u00e9rence", "Prototype", "JavaScript", "M\u00e9thode"], "summary": "La m\u00e9thode [@@replace]()
remplace toutes ou certaines correspondances d'un motif this
dans une cha\u00eene de caract\u00e8re avec un outil de remplacement. La valeur renvoy\u00e9e est la nouvelle cha\u00eene ainsi cr\u00e9\u00e9e. Cet outil de remplacement peut \u00eatre une cha\u00eene de caract\u00e8re ou une fonction appel\u00e9e pour chacune des correspondances.", "localization_tags": [], "locale": "fr", "last_edit": "2016-05-09T12:43:54", "review_tags": []}, {"uuid": "1cd66adf-cf05-4653-b36b-e24fadc743cf", "title": "RegExp.prototype[@@replace]()", "url": "/ja/docs/Web/JavaScript/Reference/Global_Objects/RegExp/@@replace", "tags": ["Regular Expression", "prototype", "Reference", "RegExp", "Prototype", "JavaScript", "Method"], "summary": "[@@replace]()
\u30e1\u30bd\u30c3\u30c9\u306f\u3001 replacement
\u306b\u3088\u3063\u3066\u6587\u5b57\u5217\u5185\u306e this
\u30d1\u30bf\u30fc\u30f3\u306e\u4e00\u90e8\u307e\u305f\u306f\u3001\u3059\u3079\u3066\u306e\u4e00\u81f4\u3092\u7f6e\u304d\u63db\u3048\u3066\u3001\u7f6e\u63db\u7d50\u679c\u3092\u65b0\u3057\u3044\u6587\u5b57\u5217\u3068\u3057\u3066\u8fd4\u3057\u307e\u3059\u3002replacement
\u306f\u6587\u5b57\u5217\u304b\u95a2\u6570\u3092\u3059\u3079\u3066\u306e\u30de\u30c3\u30c1\u3054\u3068\u306b\u547c\u3073\u51fa\u3055\u308c\u308b\u3088\u3046\u306b\u3067\u304d\u307e\u3059\u3002", "localization_tags": [], "locale": "ja", "last_edit": "2016-07-17T20:25:00", "review_tags": ["editorial"]}], "modified": "2016-05-09T06:35:18", "label": "RegExp.prototype[@@replace]()", "localization_tags": [], "locale": "en-US", "id": 180874, "last_edit": "2016-05-09T06:35:14", "summary": "The [@@replace]()
method replaces some or all matches of a this
pattern in a string by a replacement
, and returns the result of the replacement as a new string. The replacement
can be a string or a function to be called for each match.", "sections": [{"id": "Quick_Links", "title": null}, {"id": "Syntax", "title": "Syntax"}, {"id": "Parameters", "title": "Parameters"}, {"id": "Return_value", "title": "Return value"}, {"id": "Description", "title": "Description"}, {"id": "Examples", "title": "Examples"}, {"id": "Direct_call", "title": "Direct call"}, {"id": "Using_replace_in_subclasses", "title": "Using @@replace in subclasses"}, {"id": "Specifications", "title": "Specifications"}, {"id": "Browser_compatibility", "title": "Browser compatibility"}, {"id": "See_also", "title": "See also"}], "slug": "Web/JavaScript/Reference/Global_Objects/RegExp/@@replace", "review_tags": []}