Sign in to follow this  
Followers 0
TerarinK

StringRegExp

4 posts in this topic

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

Share this post


Link to post
Share on other sites



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

Put 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.

Share this post


Link to post
Share on other sites

Thank you SmOke_N for your input

StringRegExp($aTableData[0][2], "(?s)(?i)(?:Name:) (.*?)" & @CRLF & "(?:Telephone:) (.*?)", 1)

0x576520616C6C206469652C206C697665206C69666520617320696620796F75207765726520696E20746865206C617374207365636F6E642E

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0