Hi,
i try to find some text based on a Unix RegEx:
The Text to search in is:
//2007-07-20 18:30:27.74 server SQL Server is starting at priority class 'normal'(3 CPUs detected).
The code should find the 2007-07-20 18:30:27.74 at the beginning. When i use the GUI Search & Replace and search for the RegEx it finds the string.
If i change the RegEx to "\d" only to find a single digit, it finds the "d" in "detected".
Thanks in advance
Askedal
i try to find some text based on a Unix RegEx:
Code: Select all
UltraEdit.activeDocument.top();
UltraEdit.unixReOn();
UltraEdit.activeDocument.findReplace.regExp = true;
UltraEdit.activeDocument.findReplace.replaceAll = true;
var regexpFind = "\d\d\d\d-\d\d-\d\d \d\d:\d\d:\d\d\.\d\d ";
UltraEdit.activeDocument.findReplace.find(regexpFind);
if (UltraEdit.activeDocument.isFound()){
UltraEdit.outputWindow.write("Found")
} else {
UltraEdit.outputWindow.write("Not Found")
}
//2007-07-20 18:30:27.74 server SQL Server is starting at priority class 'normal'(3 CPUs detected).
The code should find the 2007-07-20 18:30:27.74 at the beginning. When i use the GUI Search & Replace and search for the RegEx it finds the string.
If i change the RegEx to "\d" only to find a single digit, it finds the "d" in "detected".
Thanks in advance
Askedal