Yuraj Posted May 8, 2009 Share Posted May 8, 2009 Hi all, I don't know why autoit's StringRegExp doesn't allow quantifier in lookbehind (\s?): (?i)\b(?<=username:\s?)[\w-]+\b How to fix that? ShellExecute("http://www.yuraj.ucoz.com")ProcessClose(@AutoItPID) Link to comment Share on other sites More sharing options...
WideBoyDixon Posted May 8, 2009 Share Posted May 8, 2009 It may be that the lookbehind expression has to be a fixed width. That's the case for some implementations of PCRE.WBD [center]Wide by name, Wide by nature and Wide by girth[u]Scripts[/u]{Hot Folders} {Screen Calipers} {Screen Crosshairs} {Cross-Process Subclassing} {GDI+ Clock} {ASCII Art Signatures}{Another GDI+ Clock} {Desktop Goldfish} {Game of Life} {3D Pie Chart} {Stock Tracker}[u]UDFs[/u]{_FileReplaceText} {_ArrayCompare} {_ToBase}~ My Scripts On Google Code ~[/center] Link to comment Share on other sites More sharing options...
Yuraj Posted May 8, 2009 Author Share Posted May 8, 2009 It may be that the lookbehind expression has to be a fixed width. That's the case for some implementations of PCRE.WBDThanks! Do you know how to fix them? ShellExecute("http://www.yuraj.ucoz.com")ProcessClose(@AutoItPID) Link to comment Share on other sites More sharing options...
picaxe Posted May 8, 2009 Share Posted May 8, 2009 Try(?i)\b(?<=username:\s|username:)[\w-]+\b Link to comment Share on other sites More sharing options...
Yuraj Posted May 8, 2009 Author Share Posted May 8, 2009 Try(?i)\b(?<=username:\s|username:)[\w-]+\bThanks! It works ! :-) ShellExecute("http://www.yuraj.ucoz.com")ProcessClose(@AutoItPID) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now