N
Nick Snels
Hi,
I'm trying to get regular expressions to work with a string that
contains letters with accents. I have the following sentence:
De kiné weet één van hun patiënten te overtuigen om gekke dingen te
doen.
The regexp /patiënten/ matches the word patiënten. 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 'kiné weet' 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
I'm trying to get regular expressions to work with a string that
contains letters with accents. I have the following sentence:
De kiné weet één van hun patiënten te overtuigen om gekke dingen te
doen.
The regexp /patiënten/ matches the word patiënten. 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 'kiné weet' 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