Supongamos que tiene una hoja de trabajo que contiene una lista de rutas de archivos, ahora le gustaría extraer solo el nombre de archivo (la parte derecha de la barra invertida final) de cada ruta, como se muestra en las siguientes capturas de pantalla. | Supposing you have a worksheet which contains a list of file paths, now you would like to extract just the filename (the right part of the final backslash) from each path as following screenshots shown. |
El cuarto uso de la barra invertida es para ciertas aserciones simples. | The fourth use of backslash is for certain simple assertions. |
Sin embargo, hay un carácter que no está protegido: la barra invertida '\'. | However, one character is not protected: the backslash '\'. |
Presta atención a la barra invertida (\) que está delante del *. | Note the backslash (\) in front of the *. |
Particularmente, la barra invertida ahora se trata como un límite de palabra. | In particular, backslashes are now treated as word boundaries. |
Nuevamente, si intenta escapar cualquier otro carácter, ¡la barra invertida será impresa también! | Again, if you try to escape any other character, the backslash will be printed too! |
De modo que, por lo general, no hay necesidad de escapar la barra invertida misma. | So usually there is no need to escape the backslash itself. |
En este caso se obtiene el significado normal retirando la barra invertida. | In this case you need to remove the backslash to get the normal meaning. |
Note que si intenta escapar cualquier otro carácter, ¡la barra invertida será impresa también! | Note that if you try to escape any other character, the backslash will also be printed! |
Cuando la pregunta se procese, la barra invertida se eliminará y no se guardará en Moodle. | When the question is processed, the backslash is removed and is not saved in Moodle. |
