[REBOL] Re: Parse experiments: help needed
From: robert:muench:robertmuench at: 27-Nov-2001 18:36
> -----Original Message-----
> From: [rebol-bounce--rebol--com] [mailto:[rebol-bounce--rebol--com]]On Behalf Of
> Cassani Mario
> Sent: Tuesday, November 27, 2001 3:25 PM
> To: REBOL List (E-mail)
> Cc: Rebmail (E-mail)
> Subject: [REBOL] Parse experiments: help needed
> Has someone any suggestion to handle this?
Hi, yes I had the same problem while developing make-doc-pro. It took me some
time ;-) but here is the rule of thumb:
The trick is to parse your string the following way, while reducing the valid
character set by your special chars:
chars: complement charset "_*%"
rules: copy text some chars [
*
<this is your bold rule>
| "_" <this is your underline rule>
| "%" <this is your italic rule>
]
You got the idea?
--
Robert M. Münch
IT & Management Freelancer
Mobile: +49 (0)177 2452 802
Fax : +49 (0)721 8408 9112
Web : http://www.robertmuench.de