I do not want to remove it... I should have been more specific .. I want to check to see if they are there. If I have slashes then I know my xml file is not configured properly and then I can handle it with another function...
Check @extended, if they were removed, it will be greater than zero.
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.
$s_val="<value>c:\1\2<\value>"&@CRLF&_"<value>\c:\3\4<\value>"&@CRLF&_"<value>/c:\5\6<\value>"&@CRLF&_"<value>c:\7\8/<\value>"&@CRLF&_"<value>c:\9\10<\value>"&@CRLF&_"<value>\c:\11\12\<\value>"&@CRLF&_"<value>/c:\13\14/<\value>"$a_array=StringRegExp($s_val,"(?i)<value>(?![\\/])(.+?)(?<=[^\\/])<\\value>",3)IfIsArray($a_array)Then_ArrayDisplay($a_array,"Should be: 1/2 and 9/10")EndIf
Recommended Posts
SmOke_N
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.
SmOke_N
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.
SmOke_N
Here, quick and dirty was bothering me:
1 line: StringRegExp($s_val, "(?i)<value>(?![\\/])(.+?)(?<=[^\\/])<\\value>", 3)
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.