FindAll and the correct pattern was the answer

Post

Posted
Rating:
#1 (In Topic #1292)
Regular
sergioabreu is in the usergroup ‘Regular’
The only needed pattern to match latin characters is

Code

[\xc2\xc3][\x80-\xbf]

With no "()" neither "+" neither "?"  :lol:

The work I wanted to be done is made by findall FUNCTION. findAll is static so you don't need to create a new instance.

Here is a complete view:

Code

Dim res as String[]
Dim s, source, patt as String

source =  "1aâ £oç õ § é Á Êüç x"  'Contains 10 latin chars mixed with ascii
patt = "[\xc2\xc3][\x80-\xbf]"

res = RegExp.findAll( source,  patt )

For i = 0 To res.Count - 1
   Print i;; res[i];; Len(res[i]);; String.Len(res[i])
Next
Online now: No Back to the top
1 guest and 0 members have just viewed this.