restrict-to-line expression

A discussion of how to use EasyPatterns, EasyPattern Helper and using the EasyPattern library.

Moderator: DataMystic Support

Post Reply

restrict-to-line expression

Post by Vicious » Thu Feb 17, 2005 1:36 am

maybe someone can help me with this topic:

I need a filter like that:

restrict to matching lines:
must begin with "<Russian>"

whenever such a line was found, a subfilter selects the part after "<Russian>" and converts the UTF-16 strings to CP1251 strings

and so on.

My files are in UTF-16, and I need to convert the content of each line to specific codepages, depending on the beginning of the line (can be "<Greek>" or "<Russian>" or "<Turkish>" and so on).

User avatar
DataMystic Support
Site Admin
Posts: 2328
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia

Post by DataMystic Support » Thu Feb 17, 2005 10:39 am

You can't use a restriction for this - they are single-byte based. Instead, use a Unicode pattern match search/replace filter.

Try a pattern of


Simon Carter, - Insulin dose calculator for Type 1 diabetes - 250,000 free software downloads - send huge email attachments

Post Reply