# یافتن و جایگزینی متن

> متن عادی یا یک عبارت منظم را پیدا و جایگزین کنید.

[Open tool](https://www.toolcabana.com/fa/replace-text) · [متن و نوشتن](https://www.toolcabana.com/fa/category/text-and-writing)

Tool ID: replace-text. Requested language: fa. Description language: fa. Complete guide translation: yes.

## Overview (en)

Find and Replace Text swaps every occurrence of a word or phrase in your text for the replacement you enter. Matching is case-sensitive by default and treats the search as literal text. Switch on Use regular expression to search with a JavaScript pattern and reuse captured groups in the replacement, or leave Replace with empty to delete every match.

## Supported tasks (fa)

متن عادی یا یک عبارت منظم را پیدا و جایگزین کنید.

## Steps (fa)

1. متن خود را بنویسید یا جای‌گذاری کنید، یا یک نمونه بارگذاری کنید.
2. تنظیمات پایه را تغییر دهید یا برای تنظیم دقیق نتیجه، حالت پیشرفته را باز کنید.
3. نتیجه را بررسی و کپی یا دانلود کنید. برای اجرای دستی، نتایج زنده را متوقف کنید. متن ورودی یا هر تنظیمی با بیش از 20,000 نویسه به اجرای صریح نیاز دارد.

## Settings

- یافتن (fa; key: find; type: text)
- جایگزینی با (fa; key: replacement; type: text)
- استفاده از عبارت منظم (fa; key: regex; type: checkbox)
- تطبیق بزرگی و کوچکی حروف (fa; key: caseSensitive; type: checkbox)

## Limitations (fa)

عملیات متنی معمولاً تا 2,000,000 نویسه را می‌پذیرند. تجزیه‌گرها، تولیدکننده‌ها و فرمول‌های مختلف محدودیت‌های بیشتری دارند که در کنترل‌های آن‌ها نمایش داده می‌شود.

## Example input

```text
Hello world.
A second line.
Café, İstanbul, 日本語, and 👨‍👩‍👧‍👦.
```

## Privacy and connections (fa)

این عملیات، متن ورودی را در مرورگر شما پردازش می‌کند. کپی و دانلود فقط با اقدام شما انجام می‌شوند؛ متن ورودی در حساب یا سابقه ذخیره نمی‌شود.

## Questions (fa)

### How do I use capture groups in a regex find and replace?

Enable Use regular expression, wrap parts of the pattern in parentheses and refer to them as $1, $2 and so on in Replace with. For example, the pattern (\d+)-(\d+) with the replacement $2-$1 swaps the two numbers.

### Is find and replace case-sensitive?

Match case is on by default, so Apple will not match apple. Turn it off to replace every capitalization variant. In literal mode, special characters such as dots or brackets in the search text are matched exactly as written.

### Why does my regular expression stop with an execution limit error?

Regular expressions run in a separate worker and are stopped after 750 milliseconds so the page does not hang. Patterns with heavy backtracking can hit this limit. Regex mode also accepts up to 500,000 characters of input and a 2,000-character pattern.

### متن ورودی من کجا پردازش می‌شود؟

این عملیات، متن ورودی را در مرورگر شما پردازش می‌کند. کپی و دانلود فقط با اقدام شما انجام می‌شوند؛ متن ورودی در حساب یا سابقه ذخیره نمی‌شود.

### محدودیت‌های ورودی چیست؟

عملیات متنی معمولاً تا 2,000,000 نویسه را می‌پذیرند. تجزیه‌گرها، تولیدکننده‌ها و فرمول‌های مختلف محدودیت‌های بیشتری دارند که در کنترل‌های آن‌ها نمایش داده می‌شود.

## Related tools

- [Reverse text](https://www.toolcabana.com/fa/reverse-text)
- [Text difference checker](https://www.toolcabana.com/fa/text-diff)
- [Bold Unicode text](https://www.toolcabana.com/fa/bold-text)
- [Italic Unicode text](https://www.toolcabana.com/fa/italic-text)
