Questions tagged [string-prefix]

3 questions
13
votes
3 answers

Add 'r' prefix to a python variable

I have string variable which is temp = '1\2\3\4' I would like to add a prefix 'r' to the string variable and get r'1\2\3\4' so that I can split the string based on '\'. I tried the following: r'temp' 'r' + temp r + temp But none of the above…
ycenycute
  • 688
  • 4
  • 10
  • 20
0
votes
1 answer

string-prefix? \getting error unbound identifier in module

i am trying to use string-prefix? but getting error unbound identifier in module (string-prefix? "Racket" "R") using drracket please help
TzachiA
  • 13
  • 2
0
votes
1 answer

How to add prefix to each word in a given string

I want to add prefix to every word in a given string. My code is :- StringBuilder strColsToReturns = new StringBuilder(); String strPrefix = "abc."; strColsToReturns.append(String.format(" %sId, %sname, %stype,", strPrefix,…
Mangu Singh Rajpurohit
  • 10,806
  • 4
  • 68
  • 97