Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Parsing ideas, maybe regular expression search
Message
From
03/03/2004 10:52:04
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00882554
Message ID:
00882733
Views:
18
* i unknown the specific problem, but try this ( have a 65000 limit )
CLEAR
lcMyString = "!!aaa!bbb!!ccc!!ddd!eee!!"
? m.lcMyString
PRIVATE aParsing
for lnI = 1 to ALINES(aParsing, m.lcMyString+" ","!!")
     lnStart = AT( '!', aParsing[m.lnI])
     IF m.lnStart>0
       aParsing[m.lnI] = STUFF(aParsing[m.lnI],m.lnStart,1,"DO")
     ENDIF
ENDFOR
IF m.lnI > 1
	lcMyString = aParsing[1]
	FOR lnI = 2 TO m.lnI-2
		lcMyString = m.lcMyString + "!!" + aParsing[m.lnI]
	ENDFOR
	lcMyString = m.lcMyString + "!!" ;
				+ IIF(aParsing[m.lnI]==" ","",LEFT(aParsing[m.lnI],LEN(aParsing[m.lnI])-1))
ENDIF
? m.lcMyString
Fabio
Previous
Reply
Map
View

Click here to load this message in the networking platform