When using search/replace tool in jupyterlab there is a message into the search bar saying "Use /re/ syntax for regexp search"
However I could not find an example on how exactly this syntax should be. I tried few options but none really worked.
Can anyone give me an example of how this syntax should be?
In Jupiter lab you can use the shortcut Ctrl+Shift+r to replace a word.
Once you do that you will see a white space when you can type your sequence if you want to use regexp you should write the sequence between slash.
For example, to replace line break by a comma you can type
/\n/
and you type Enter you see another blank space where you can write:
Apparently in order to search for a regular expression in jupyterlab one should enter the regex syntax between two slashes '/'.
For example to search for all sequences of the letter A one should enter in the search bar: /A+/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With