Regular expressions... drives me mad
-
Yeah, can't figure out how can I use it if I want so-called "non-greedy" expression, but with scripting version 5.0. See in version 5.5 you have a special qualifier "?" that gives you what you want, but version 5.0 (Win2k) doesn't have it. In my example I need to strip all ASP code from text, making
"<%[\s\S]*%>
" of course won't work if I have multiple occurances of ASP script in the page, I tried"<%[^(%>)]*%>
" as well, but it takes parenthesses "()" as a characters... What can I use? Anyone can help? Philip Patrick Web-site: www.stpworks.com "Two beer or not two beer?" Shakesbeer -
Yeah, can't figure out how can I use it if I want so-called "non-greedy" expression, but with scripting version 5.0. See in version 5.5 you have a special qualifier "?" that gives you what you want, but version 5.0 (Win2k) doesn't have it. In my example I need to strip all ASP code from text, making
"<%[\s\S]*%>
" of course won't work if I have multiple occurances of ASP script in the page, I tried"<%[^(%>)]*%>
" as well, but it takes parenthesses "()" as a characters... What can I use? Anyone can help? Philip Patrick Web-site: www.stpworks.com "Two beer or not two beer?" ShakesbeerYou can upgrade Win2K to scripting v5.6: http://msdn.microsoft.com/downloads/sample.asp?url=/msdn-files/027/001/733/msdncompositedoc.xml[^]
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
-
You can upgrade Win2K to scripting v5.6: http://msdn.microsoft.com/downloads/sample.asp?url=/msdn-files/027/001/733/msdncompositedoc.xml[^]
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
I know, well, I have XP, so got the right version, but the problem that Hosting Provider doesn't have it :( That's why I'm looking for an alternative way Philip Patrick Web-site: www.stpworks.com "Two beer or not two beer?" Shakesbeer