add regex and swap example
add trim example