User Tools

Site Tools


docs:tips_n_tricks:regex.html

Regular Expressions

Non-greedy

*? instead of *

Non-greedy in sed

Does not work. (End of the story.)

Alternative:

Use Perl1):

perl -pe 's/.*?/\1/'

\t in grep

Does not work.

However, in GNU grep you can use the -p switch.

1)
Well - that example does't make sense
docs/tips_n_tricks/regex.html.txt · Last modified: 06.09.2025 14:00 CEST by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki