回复 4# dearmb $Str = _
'<?xml version="1.0" encoding="utf-8" ?>' & @CRLF & _
'<configuration>' & @CRLF & _
' <configSections>' & @CRLF & _
' <sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >' & @CRLF & _
' <section name="Orid.Management.SOHO.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />' & @CRLF & _
' </sectionGroup>' & @CRLF & _
' </configSections>' & @CRLF & _
' <applicationSettings>' & @CRLF & _
' <Orid.Management.SOHO.Properties.Settings>' & @CRLF & _
' <setting name="DefaultFontFile" serializeAs="String">' & @CRLF & _
' <value>o-rid Overline</value>' & @CRLF & _
' </setting>' & @CRLF & _
' <setting name="ColorIndex" serializeAs="String">' & @CRLF & _
' <value>0</value>' & @CRLF & _
' </setting>' & @CRLF & _
' <setting name="ServerAddress" serializeAs="String">' & @CRLF & _
' <value>192.168.163.92</value>' & @CRLF & _
' </setting>' & @CRLF & _
' <setting name="ServerName" serializeAs="String">' & @CRLF & _
' <value>練習#4</value>' & @CRLF & _
' </setting>' & @CRLF & _
' <setting name="ViewVersion" serializeAs="String">' & @CRLF & _
' <value> (Version 30.1)</value>' & @CRLF & _
' </setting>' & @CRLF & _
' <setting name="CompanyMasterContoinString" serializeAs="String">' & @CRLF & _
' <value>192.168.163.21</value>' & @CRLF & _
' </setting>' & @CRLF & _
' </Orid.Management.SOHO.Properties.Settings>' & @CRLF & _
' </applicationSettings>' & @CRLF & _
'</configuration>' & @CRLF & @CRLF
$Test = StringRegExp($str, '(?s)<.+"ViewVersion".+>.+\s\((.*?)(?=\)</value>)', 3)
MsgBox(0,0,$Test[0])
|