example1_string = /a/b/c/./d/e ( if found . then I just want to remove only './' )
example2_sting = /a/b/c/../d/e ( if found .. anywhere in string then I want to just remove ' c/../' )
and if no . or no .. then leave it as is.
How do I achieve this?
and this string might be more or less in length, not exactly upto e.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.