# البحث عن النص واستبداله

> ابحث عن نص حرفي أو تعبير نمطي واستبدله.

[Open tool](https://www.toolcabana.com/ar/replace-text) · [النصوص والكتابة](https://www.toolcabana.com/ar/category/text-and-writing)

Tool ID: replace-text. Requested language: ar. Description language: ar. 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 (ar)

ابحث عن نص حرفي أو تعبير نمطي واستبدله.

## Steps (ar)

1. اكتب النص أو الصقه، أو حمّل مثالًا.
2. غيّر الإعدادات الأساسية أو افتح الوضع المتقدم لضبط النتيجة بدقة.
3. راجع النتيجة وانسخها أو نزّلها. أوقف النتائج المباشرة مؤقتًا للتشغيل اليدوي. يتطلب النص أو أي إعداد منفرد يتجاوز 20,000 محرف تشغيلًا صريحًا.

## Settings

- بحث (ar; key: find; type: text)
- استبدال بـ (ar; key: replacement; type: text)
- استخدام تعبير نمطي (ar; key: regex; type: checkbox)
- مراعاة حالة الأحرف (ar; key: caseSensitive; type: checkbox)

## Limitations (ar)

تقبل عمليات النص عادةً ما يصل إلى 2,000,000 محرف. تفرض أدوات التحليل والتوليد والصيغ الفردية حدودًا إضافية تظهر في عناصر التحكم الخاصة بها.

## Example input

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

## Privacy and connections (ar)

تعالج هذه العملية النص في متصفحك. يتطلب النسخ والتنزيل إجراءً صريحًا؛ ولا يُحفظ النص المدخل في حساب أو سجل.

## Questions (ar)

### 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/ar/reverse-text)
- [Text difference checker](https://www.toolcabana.com/ar/text-diff)
- [Bold Unicode text](https://www.toolcabana.com/ar/bold-text)
- [Italic Unicode text](https://www.toolcabana.com/ar/italic-text)
