i'm looking for a way to way to match / and \ for example: if i get the string "hello\sir/!" i'd like to get hello\sir/!
Asked
Active
Viewed 1,723 times
0
-
What did you try and in what way did it fail to work as expected? – rici Apr 02 '17 at 13:45
1 Answers
0
Maybe try using (.*\\.*\/.*)
:
.*
Should match every single character or nothing
\\
Should match a backslash (Two of them since you need to escape)
\/
Should match a common slash (With a backslash since you need to escape)
(...)
Should be the capture group
Watch out for multiline tags (Depending on the text you want to match with)...

Mateus
- 4,863
- 4
- 24
- 32