smarty regex_replace [SOLVED]
Posted: Sun Feb 28, 2010 7:54 pm
Hi,
I have a little smarty question, hopefully someone can help me out : )
I have many strings that follow the following scheme :
Espiritu Santo, Vanuatu (SON)
Hamilton Island, Australia (HTI)
Bangkok, Thailand (BKK)
New York, NY, United States (NYC)
...
If {$mystring} is Bangkok, Thailand (BKK) how do I make the output to show :
BKK ?
If {$mystring} is New York, NY, United States (NYC) how do I make the output to show :
NYC?
... ,etc
I hope it's not too confusing :)
Thanks
I have a little smarty question, hopefully someone can help me out : )
I have many strings that follow the following scheme :
Espiritu Santo, Vanuatu (SON)
Hamilton Island, Australia (HTI)
Bangkok, Thailand (BKK)
New York, NY, United States (NYC)
...
If {$mystring} is Bangkok, Thailand (BKK) how do I make the output to show :
BKK ?
If {$mystring} is New York, NY, United States (NYC) how do I make the output to show :
NYC?
... ,etc
I hope it's not too confusing :)
Thanks