in asp.net C#
let's say i want to store only the word "Batu Pahat" to database from following sentence
Conditions for Batu Pahat, MY at 11:00 am MYT
or "Mersing" from the following sentence?
Conditions for Mersing, MY at 12:00 pm MYT
Any one knows any algoritham to get this text? please help :)
UPDATE
Example sentences
Conditions for Kangar, MY at 10:00 am MYT
Conditions for Batu Pahat, MY at 11:00 am MYT
Conditions for Mersing, MY at 11:30 am MYT
Conditions for Segamat, MY at 12:00 pm MYT
Conditions for Johor Bahru Perdana, MY at 11:00 am MYT
Conditions for Muar, MY at 03:00 am MYT
Extra Info
The time "11:00 am" is not fixed.