| View previous topic :: View next topic |
| Author |
Message |
AiKscroll
Joined: 06 Jun 2005 Posts: 179 Location: Northern Virginia
|
Posted: Wed Nov 15, 2006 10:42 pm Post subject: InStr Function skipping literal commas |
|
|
AHK seems to be skipping any `, commas and giving a blank parameter error message.
Use this code to see what I mean:
| Code: | var = abc,123
comma := InStr(var, `,)
msgbox, %comma% |
Output should be 4 but I get an error instead. _________________ _AiK |
|
| Back to top |
|
 |
Titan
Joined: 11 Aug 2004 Posts: 5068 Location: imaginationland
|
Posted: Wed Nov 15, 2006 11:16 pm Post subject: |
|
|
It's an expression so use "," instead. _________________
RegExReplace("irc.freenode.net/ahk", "^(?=(.(?=[\0-r\[]*((?<=\.).))))(?:[c-\x73]{2,8}(\S))+((2)|\b[^\2-]){2}\D++$", "$u3$1$3$4$2") |
|
| Back to top |
|
 |
|