regex double escaping

Hello,

Are there any way to avoid regex double escaping : \\s ?

In python, for example, you can add a r'' to mean you want raw data, which become r'\s'.

In a simple example, it is pointless, but when you have a lot of possibilities, there are too many \\ to let the code readable.

Could not find any tricks over the net.

Any advices ?

Thanks,

Larry

Last edited on
Topic archived. No new replies allowed.