
com.github.raphc.maven.plugins.selenese4j.utils.ArrayUtils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of selenese4j-maven-plugin-api Show documentation
Show all versions of selenese4j-maven-plugin-api Show documentation
This is the plugin API needed to develop your own function
The newest version!
/**
*
*/
package com.github.raphc.maven.plugins.selenese4j.utils;
/**
* @author Raphael
*
*/
public class ArrayUtils {
/**
* Removed leading and trailing quotes and double quotes from all String element contained into the array
* @param arr
* @return
*/
public static String[] unQuotingArrayElement(String[] arr){
String[] result = new String[arr.length];
int i = 0;
for(String emt : arr){
result[i] = emt.replaceAll("^\"|^'|'$|\"$", "");
i++;
}
return result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy