TerarinK Posted August 24, 2008 Share Posted August 24, 2008 StringRegExp($aTableData[0][2], "(?s)(?i)(?:Name:) (.*?)(?:Telephone:) (.*?)", 1) $aTableData[0][2] look like this given off by _IETableWriteToArray: Tom555-555-5555 but when I copy that is correctly formats it to Tom 555-555-5555 so how would I add that newline into the script? I added a (?s) right before the (?:Telephone:) but that doesn't work 0x576520616C6C206469652C206C697665206C69666520617320696620796F75207765726520696E20746865206C617374207365636F6E642E Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted August 24, 2008 Moderators Share Posted August 24, 2008 StringRegExp($aTableData[0][2], "(?s)(?i)(?:Name:) (.*?)(?:Telephone:) (.*?)", 1) $aTableData[0][2] look like this given off by _IETableWriteToArray: Tom555-555-5555 but when I copy that is correctly formats it to Tom 555-555-5555 so how would I add that newline into the script? I added a (?s) right before the (?:Telephone:) but that doesn't workPut it in a loop with Step 2 and add the CRLF? Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
TerarinK Posted August 24, 2008 Author Share Posted August 24, 2008 Thank you SmOke_N for your input StringRegExp($aTableData[0][2], "(?s)(?i)(?:Name:) (.*?)" & @CRLF & "(?:Telephone:) (.*?)", 1) 0x576520616C6C206469652C206C697665206C69666520617320696620796F75207765726520696E20746865206C617374207365636F6E642E Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted August 24, 2008 Moderators Share Posted August 24, 2008 Thank you SmOke_N for your input StringRegExp($aTableData[0][2], "(?s)(?i)(?:Name:) (.*?)" & @CRLF & "(?:Telephone:) (.*?)", 1)That would be: \r\n for regex. "(?s)(?i)(?:Name:) (.*?)\r\n(?:Telephone:) (.*?)" Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. 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