Regular replace string: Difference between revisions
Jump to navigation
Jump to search
(Created page with ""Replaces part of a text string with a different text string using regular expressions." == Google Sheet == * [https://support.google.com/docs/answer/3098245?hl=zh-Hant REGEX...") |
m (Text replacement - "Category:Text file processing" to "Category:String manipulation") |
||
| (4 intermediate revisions by one other user not shown) | |||
| Line 4: | Line 4: | ||
* [https://support.google.com/docs/answer/3098245?hl=zh-Hant REGEXREPLACE - 文件編輯器說明] in Chinese | * [https://support.google.com/docs/answer/3098245?hl=zh-Hant REGEXREPLACE - 文件編輯器說明] in Chinese | ||
* [https://support.google.com/docs/answer/3098245?hl=en REGEXREPLACE - Docs Editors Help] in English | * [https://support.google.com/docs/answer/3098245?hl=en REGEXREPLACE - Docs Editors Help] in English | ||
{{exclaim}} Notice the Google Sheet limit: | |||
* Maximum string length is 50,000 characters in one cell<ref>[https://gsuitetips.com/tips/sheets/google-spreadsheet-limitations/ Sheets Tips - Google Sheets Tips and Tricks | G Suite Tips]</ref> | |||
== Excel == | == Excel == | ||
Regular expression was not supported well on Excel. Using the [https://support.office.com/zh-tw/article/substitute-%E5%87%BD%E6%95%B8-6434944e-a904-4336-a9b0-1e58df3bc332 SUBSTITUTE 函數 - Office 支援] function instead. | |||
{{exclaim}} Notice the Excel limit: | |||
* Nested 64 Substitute Formulas limit. | |||
* Excel function limit 8192 character<ref>[https://support.office.com/en-us/article/excel-specifications-and-limits-1672b34d-7043-467e-8e27-269d656771c3 Excel specifications and limits - Excel]</ref> | |||
== PHP == | == PHP == | ||
[https://www.php.net/manual/en/function.preg-replace.php PHP: preg_replace - Manual] | [https://www.php.net/manual/en/function.preg-replace.php PHP: preg_replace - Manual] | ||
[[Category:Regular expression]] [[Category:Software]] [[Category:Programming]] [[Category:Data Science]] [[Category: | [[Category:Regular expression]] [[Category:Software]] [[Category:Programming]] [[Category:Data Science]] [[Category:String manipulation]] | ||
Latest revision as of 19:31, 9 March 2021
"Replaces part of a text string with a different text string using regular expressions."
Google Sheet[edit]
- REGEXREPLACE - 文件編輯器說明 in Chinese
- REGEXREPLACE - Docs Editors Help in English
Notice the Google Sheet limit:
- Maximum string length is 50,000 characters in one cell[1]
Excel[edit]
Regular expression was not supported well on Excel. Using the SUBSTITUTE 函數 - Office 支援 function instead.
Notice the Excel limit:
- Nested 64 Substitute Formulas limit.
- Excel function limit 8192 character[2]