Text Excel 365 ◉ 12 views

=REGEXTEST()

REGEXTEST Function

Applies To: Excel for Microsoft 365Excel for Microsoft 365 for Mac
=REGEXTEST(text, pattern, [case_sensitivity])
Hover argument names in the table for details.
Output typeLogical
Popularity30 / 100
VolatileNo
Dynamic ArrayNo
📥 Download sample .xlsx — Coming soon ▦ Try in Playground Dedicated file for this function — safe & lightweight · sample data + live formulas
Share:

⬇ Download Sample Workbook

A dedicated .xlsx for =REGEXTEST() with Persian sample data & live formulas — open in Excel and practice.

  • Sheet “Sample” — data table + formula in place
  • Sheet “Guide” — syntax, arguments & tips from this page
  • Instant & secure (token + rate limit)
📥 Download REGEXTEST.xlsx — Coming soon ~ 8–12 KB · No macros

⇪ Share

Send this function to friends

🧠 🧠 Quiz this function

%d questions — syntax, example & errors — test yourself!

◧ Arguments

ArgumentTypeRequiredDescription
text Text Required The text or the reference to a cell containing the text you want to match against.
pattern Text Required The regular expression ("regex") that describes the pattern of text you want to match.
case_sensitivity Number Required Determines whether the match is case-sensitive. By default, the match is case-sensitive. Enter one of the following:0: Case sensitive1: Case insensitive

▣ Examples

آیا حرف 'a' را شامل می‌شود؟ =REGEXTEST(A2,"a")
آیا حروف کوچک انگلیسی را شامل می‌شود؟ =REGEXTEST(A2,"[a-z]")
آیا حروف بزرگ انگلیسی را شامل می‌شود؟ =REGEXTEST(A2,"[A-Z]")
آیا حروف صدادار را شامل می‌شود؟ =REGEXTEST(A2,"[aeiou]")
آیا ارقام عددی را شامل می‌شود؟ =REGEXTEST(A2,"[0-9]")
آیا با الگوی شماره تلفن (۳) ۵۵۵-۴۱۹۵ مطابقت دارد؟ =REGEXTEST(A2,"^\([0-9]{3}\) [0-9]{3}-[0-9]{4}$")

💬 Comments & Q&A 0 approved

🔒 Your comment will be published after review.

Share your thoughts — visible after admin approval

No comments yet — be the first!

✍️ Add comment / question

captcha
🔒 Your comment will be published after review.