tomekl wrote:
>> FS = "<[^>]*>"
>
> This one is close, but it gives me matches for each html pattern, I
> didnt manage to write FS for particular html pattern (ex <li>...</
> li>), but as I wrote before, I want to match only text between those
> tags...
If you don't provide more precise examples, it's difficult to help. This
works with the input you showed, but might not be what you want:
FS='foo<li>|</li><li>|</li>bar'
but it's too obvious to be what you're looking for. Also, it assigns a, b
and c to $2, $3 and $4 respectively (not $1, $2 and $3), but this should
not be a big problem.
--
All the commands are tested with bash and GNU tools, so they may use
nonstandard features. I try to mention when something is nonstandard (if
I'm aware of that), but I may miss something. Corrections are welcome.


|