-1

How do we have sed case sensitive only some part in searching by regex e.g.

sed -Ee '/^\s*[0-9]+.+\*FOOBAR=.+\bfoo\b.+\bbar/'  F

How do we find exact FOOBAR= and any letter case foo and any letter case bar
Thanks much

Ryszard Czech
  • 18,032
  • 4
  • 24
  • 37
  • Please add sample input (no descriptions, no images, no links) and your desired output for that sample input to your question (no comment). – Cyrus Oct 15 '21 at 00:35
  • 1
    Does this answer your question? [Can you make just part of a regex case-insensitive?](https://stackoverflow.com/questions/43632/can-you-make-just-part-of-a-regex-case-insensitive) – Wiktor Stribiżew Oct 15 '21 at 07:19

1 Answers1

1

One way is to use [fF][oO][oO] and [bB][aA][rR].

Andrew
  • 1
  • 4
  • 19