Search Results

Search: Posts Made By: dperboni
1,667
Posted By Scrutinizer
That works fine for the sample, but there would...
That works fine for the sample, but there would not be lazy matching, so if the pattern would appear twice on a line, this would not work for text between multiple patterns on the same line.

An...
1,476
Posted By Chubler_XL
You were very close, .* is greedy and will match...
You were very close, .* is greedy and will match the longest string it can.

You need this:

$ sed -e 's/\[\[.\{2,3\}:[^]]*\]\]//g' sed1.txt
1 [[special:linguagem]] FISICA
2 PORTUGUES
3 ...
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 03:24 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy