How do I assign a value to a variable and modify it with a regular expression, in one statement?
You want to do:
in one line.
Solution: Parentheses!
The most common and recommended solution is:
However another solution is:
You want to do:
in one line.
The most common and recommended solution is:
However another solution is: