Posted 18 years ago
by Marianne
For switching from HTML to VBScript, I have a lookahead defined like this (it's similar to the one in your sample but account for additional spaces between the operators):
This will work with the first line but not the second:
With standard regex I would use something like:
script .*? language which would handle all characters up to the first occurrence of the word language. But in looking over the docs I don't see a way to implement a non-greedy capture. If this isn't available then what alternative regex construct can I use to achieve the same result? Thanks.
script {LineTerminatorWhitespaceMacro}* language {LineTerminatorWhitespaceMacro}* = {LineTerminatorWhitespaceMacro}* \" (VBS | VBScript)
<script language = "VBScript">
<script id = "MyID" language = "VBScript">
script .*? language which would handle all characters up to the first occurrence of the word language. But in looking over the docs I don't see a way to implement a non-greedy capture. If this isn't available then what alternative regex construct can I use to achieve the same result? Thanks.
------------------------------- Marianne