*_______________________________________________________________________________ function regexTest() local obj,lines obj = createObject('VBScript.RegExp') obj.IgnoreCase = .f. obj.Global = .f. obj.Pattern = "^.{0,100}(\b|$)" create cursor Test (field1 M) text to lines noshow pretext 3 I have this new HP LaserJet Pro 400 printer. One word: "Wow". It does some pretty impressive things for under 500.00$. But, there is this little thing I do not like and that is this It does some pretty impressive things for under 500.00$. But, there is this little thing I do not like endtext local aa[1], naa, line naa = alines(aa, m.lines, 3) for each line in aa foxobject insert into Test values(line) endfor select cast( TestLine(m.obj, field1) as M ) as contents ; from Test ; into cursor tmp ** =brow() endfunc *_______________________________________________________________________________ function TestLine(regexObj, s) local matches matches = m.regexObj.Execute(nvl(m.s, '')) return m.matches.Item(0).Value endfunc *_______________________________________________________________________________