Login | |
|
 |
RE: group regex and replace - 1/8/2008 2:13:17 AM
|
|
 |
|
| |
ebgreen
Posts: 4613
Score: 31
Joined: 7/12/2005
Status: offline
|
Here is an example: Option Explicit Dim oRE : Set oRE = New Regexp Dim strTest strTest = "This is the first bit. Thisisareallylongstringabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz This is the last bit of text." oRE.Pattern = "\w{80,}" WScript.Echo oRE.Replace(strTest, "")
_____________________________
"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm http://www.visualbasicscript.com/m_47117/tm.htm
|
|
| |
|
|
|
|
|