• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

problem search for 'Women's' - string not terminated properly

 
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi there i just need to know the escape character, so i can search for a String that has a single quote in it?
tia
 
ranger
Posts: 17346
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well I think it is actually the single quote. So to get the ' in the search it would be ''.
At least in looking at the consultnats code in our project, it had that and when I displayed what the query would look like, it correctly had the single quote.
If not, slashes are always used as escape characters too. \ or /
Good Luck
Mark
 
Mark Spritzler
ranger
Posts: 17346
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You now Jasper, I appreciate the opportunity to help you here. But I also know that getting a quick response is important in questions like these. So you might want to try using Google groups too, and you can do searches there and find these kind of answers quickly.
I use it all the time and it helps out alot.
Mark
 
Jasper Vader
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Haha!!! got it! it was the '' ... i had tried the /\ options ... but the '' ... so simple!! aha thankyou! much!
yes, i only just noticed the groups search option on google. i am not sure what i sould have had to type to find the answer to this particular one tho....
thanks again
also, i kinda like just being at javaranch, cos it is where i learned enough (with a book) to get my java cert
 
The glass is neither half full or half empty. It is too big. But this tiny ad is just right:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic