[thelist] regex help
Anthony Baratta
Anthony at Baratta.com
Tue Sep 2 22:34:09 CDT 2003
>
>So, the issue I want an regex for is to remove s3 from the string
>"s1s2s3s4" to leave me "s1s2s4".
Psuedo code
$varLookingFor = $varVariable1
$varTargetString = $varVariable2
$varNewString = ''
@aryString = split on 's'
for each $String in @aryString
if $String != $varLookingFor then
$varNewString =. "s" . $String
end if
next
do something with $varNewString
---
Anthony Baratta
President
Keyboard Jockeys
"Conformity is the refuge of the unimaginative."
More information about the thelist
mailing list