salve a tutti,
ho una stringa molto lunga, piena di variabili, testo html ..ecc
in una parte di questa c'è un valore numerico delimitato da [ e ] ...come posso fare ad estrarlo senza fare i vari tagli left, mid, right, ecc ... ?
Grazie in anticipo
salve a tutti,
ho una stringa molto lunga, piena di variabili, testo html ..ecc
in una parte di questa c'è un valore numerico delimitato da [ e ] ...come posso fare ad estrarlo senza fare i vari tagli left, mid, right, ecc ... ?
Grazie in anticipo
Webplease.it WebAgency
www.webplease.it
regular expression
IP-PBX management: http://www.easypbx.it
Old account: 2126 messages
Oldest account: 3559 messages
grazie, trovata la procedura giusta, se può servire a qualcuno:
testo = "Acco la [mia] regular"
Dim objRegExp, strOutput
Set objRegExp = New Regexp
objRegExp.IgnoreCase = True
objRegExp.Global = True
objRegExp.Pattern = "\[([^\]]*)\]"
if objRegExp.Test(testo) then
set Matches = objRegExp.Execute(testo)
risultato = Matches(0).SubMatches(0)
end if
set Matches = Nothing
set objRegExp = Nothing
response.write risultato
Webplease.it WebAgency
www.webplease.it