DodgyDavid
Programmer
Hi there,
I have what is probably a very simple query but one that I am banging my head on the desk solving.
The string that I am working with contains conjoined data and thus it might appear as...
Vuong Huu TanLe Van HongNguyen Hoang AnhNguyen Trong TrangDang Thi HongVietnam
I have used the following to identify strings that contain conjoined data...
if ($ZA_dbf =~ /[a-z][A-Z]/) {
print STDERR "Conjoined Data Found!\n"
}
What I need to do is to locate the string and insert a semi-colon space every time a join is found, thus...
Vuong Huu Tan; Le Van Hong; Nguyen Hoang Anh; Nguyen Trong Trang; Dang Thi Hong; Vietnam
I appreciate that this will require a loop to iterate over the data and search for the correct combination but I am scratching my head for a simple solution because this just sounds like I am over-complicating the issue.
Like they say in the books - if you are iterating character by character, then there's probably a much easier way to do it.
Many thanks for reading and if possible I would appreciate answers with code examples so that I can adapt as necessary.
David
I have what is probably a very simple query but one that I am banging my head on the desk solving.
The string that I am working with contains conjoined data and thus it might appear as...
Vuong Huu TanLe Van HongNguyen Hoang AnhNguyen Trong TrangDang Thi HongVietnam
I have used the following to identify strings that contain conjoined data...
if ($ZA_dbf =~ /[a-z][A-Z]/) {
print STDERR "Conjoined Data Found!\n"
}
What I need to do is to locate the string and insert a semi-colon space every time a join is found, thus...
Vuong Huu Tan; Le Van Hong; Nguyen Hoang Anh; Nguyen Trong Trang; Dang Thi Hong; Vietnam
I appreciate that this will require a loop to iterate over the data and search for the correct combination but I am scratching my head for a simple solution because this just sounds like I am over-complicating the issue.
Like they say in the books - if you are iterating character by character, then there's probably a much easier way to do it.
Many thanks for reading and if possible I would appreciate answers with code examples so that I can adapt as necessary.
David