We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
With xpresso you can join and split strings in the pythonic way.
Python:
colorsPattern = "|".join(["black","green","red","white"]); print colorsPattern >>> black|green|red|white
xpresso:
String colorsPattern = x.String("|").join(x.list("black","green","red","white")); x.print(colorsPattern); Console: black|green|red|white
tokens = "Moscow;London;Paris".split(";") print tokens >>> ['Moscow', 'London', 'Paris']
list<String> tokens = x.String("Moscow;London;Paris").split(";"); x.print(tokens); Console: [Moscow, London, Paris]
The "in" operation on strings is also available:
if "e" in "Hello World": #do stuff
if(x.String("e").in("Hello World")) { //do stuff }