On Jan 29, 2006, at 3:53 PM, Nick Snels wrote:

> Hi,
>
> I'm trying to get regular expressions to work with a string that
> contains letters with accents. I have the following sentence:
>
> De kinweet ˛Űn van hun pati§¤ten te overtuigen om gekke dingen te
> doen.
>
> The regexp /pati§¤ten/ matches the word pati§¤ten. However when I  
> do the
> regexp /kinÚ», I get the error 'premature end of regular expression:
> /kinÚ» (SyntaxError)'. Can anybody tell me what is going on? Another
> issue with the same sentence is, when I use the regexp /\s/ to  
> highlight
> all the spaces, the space between 'kinweet' is not highlighted as a
> space. It seems like regular expressions cann't handle non-ascii
> characters at the end of a string.
>
> Kind regards,
>
> Nick
>
> -- 
> Posted via http://www.ruby-forum.com/.
>

Are you using $KCODE="u"  at the top of your script?