Hey I have a problem with regular subexpresions.
grep -o ".*='.*'" parameters.txt
parameters.txt
includes:
name='something'
lastname=' 123123'
something=' somethinggg'
My regular expresion returns everything, but i want it to return only name and value without =
and ' '
. I also want it to be immune to spaces and tabulators.
name something
lastname 123123
somethign somethinggg
=
also contain=
-characters? What does the "immunity" actually mean? Does it mean you want to allow the line to be indented by spaces or tabs (should the indentation be preserved in that case?), or does it mean you want to maintain any spaces or tabs in the values to the right?