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,306
  • 16
  • 28

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
  • 789,025
  • 32
  • 460
  • 575
0

"Escape" the character like this

a <- "\""
Georgery
  • 6,769
  • 13
  • 38