What you need to do is create a RegExp object, eg:

var re = new RegExp(config.options.txtHandbookModules,"mg");

Martin

2009/2/3 overett1 <[email protected]>:
>
> On Feb 3, 11:19 am, Martin Budden <[email protected]> wrote:
>> I'm not clear what you mean by:
>>
>> 'but I can't work out how to refer to a variable in the lookaheadRegExp part'
>>
>> since you already seem to refer to it in:
>>
>> this.lookaheadRegExp
> Sorry. What I mean is that rather than including  "PRIN|SYSC|COND|APER|
> FIT|GEN|FEES|GENPRU|BIPRU|INSPRU|MIPRU|UPRU|PRU|COBS|COB|ICOBS|ICOB|
> MCOB|CASS|MAR|TC|ML|AUTH|SUP|ENF|DEPP|DEC|DISP|COMP|COAF|CIS|COLL|CRED|
> ECO|ELM|LLD|PROF|RCB|REC|LR|PR|DTR|EMPS|FREN|OMPS|SERV|BSOG|COLLG|EG|
> PERG|RPPD|UNFCOG" in the lookaheadRegExp regex I'd like to refer to
> something like config.options.txtHandbookModules which would hold this
> text (as I have done in the 'match' regex). As lookaheadRegExp is not
> in quotes and so is presumably not a normal string I'm not sure how to
> do this.
>
> Hope that makes more sense.
>
> Jonathan
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/TiddlyWikiDev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to