1

I am trying to get text given between “ ” to make a string. But because string has two “ already in it, I am not able to do so.

?jql=filter%20=%20"Plan%20Standup%20-%20Mutual-SA"

When I am trying to input , it is giving me an error.

Input <- "?jql=filter%20=%20"Plan%20Standup%20-%20Mutual-SA""

I tried many escape characters, but always I got an error message.

Error: unexpected symbol in "input <- "?jql=filter%20=%20"Plan"

any help will be highly appreciated

bouncyball
  • 10,631
  • 19
  • 31

2 Answers2

1

In the string, there is already a double quote. So, we can wrap it with single quotes

Input <- '?jql=filter%20=%20"Plan%20Standup%20-%20Mutual-SA'
cat(Input, "\n")
#?jql=filter%20=%20"Plan%20Standup%20-%20Mutual-SA 
akrun
  • 874,273
  • 37
  • 540
  • 662
0

"Escape" the character like this

a <- "\""
Georgery
  • 7,643
  • 1
  • 19
  • 52