Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
syntax:pe [2015/11/12 06:56]
thebonsai [String length] wchar/multibyte
syntax:pe [2017/04/22 05:24] (current)
fgrose [Search and replace]
Line 100: Line 100:
 ''​${!PARAMETER}''​ ''​${!PARAMETER}''​
  
-In come cases, like for example+In some cases, like for example
  
 <​code>​ <​code>​
Line 325: Line 325:
 echo ${MYSTRING/​%x/​y} ​ # RESULT: xxxxxxxxxy</​code>​ echo ${MYSTRING/​%x/​y} ​ # RESULT: xxxxxxxxxy</​code>​
  
-If the replacement part is completely omitted, like, the matches are replaced by the nullstring, i.e. they are removed. This is equivalent to specifying an empty replacement:​+If the replacement part is completely omitted, the matches are replaced by the nullstring, i.e.they are removed. This is equivalent to specifying an empty replacement:​
 <​code>​ <​code>​
 echo ${MYSTRING//​conservative/​} echo ${MYSTRING//​conservative/​}
Line 777: Line 777:
 <​myCmd>​ <​arg1>​ <​arg2>​ <​yay!>​ <​third*arg*>​ <4> <​arg5>​ <​myCmd>​ <​arg1>​ <​arg2>​ <​yay!>​ <​third*arg*>​ <4> <​arg5>​
  
-# ...Ah fuck. (again, no workaround possible.)+# ...Ah f^^k. (again, no workaround possible.)
 </​code>​ </​code>​