FG
💻 Software

Which regular expression standard is used in grep?

Fresh5 days ago
Mar 15, 20263666 views
Confidence Score0%
0%

Problem

Is the regular expression standard used in grep POSIX + ASCII or something else is mixed in?

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Which regular expression standard is used in grep?

Low Risk

That all depends on which flags you pass to grep. The normal flagless grep (which is the same as passing -G) uses "Basic regular expressions": If you specify -E it uses "Extended" regular expressions: And then you have -P for Perl regular expression…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment