Split and regular expressions

Results 1 to 2 of 2

Thread: Split and regular expressions

  1. #1
    Join Date
    Dec 1969

    Default Split and regular expressions

    I am using the split command to make a multiple page document system (see other thread)<BR><BR>and it is splitting the pages into the arrays based upon the spliter variable &#060;PAGEBREAK&#062;<BR><BR>What I need to know is can I use regular expressions in the spilt command, so I could split it for codes like:<BR><BR>&#060;PAGEBREAK&#062;<BR>&#060;PAGEBR EAK TITLE=title&#062;<BR><BR>etc etc <BR><BR>

  2. #2
    Join Date
    Dec 1969

    Default No...

    No, you cannot use regular expressions in the Split() command.<BR><BR>If you want to use regular expressions, you must use the RegExp object.<BR><BR>You may be able to manually split the string by searching for "&#060;PAGEBREAK", and then the next "&#062;"....<BR><BR>Craig.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts