unknown
2017-08-27 16:17:11 UTC
I have always had a hard time with regx. Even the simple things like
this one. All I want to do is replace a string with another string. In
this case a ' replaced with ''.
I am trying:
rsNname = rsNname.replaceAll("\\d \\D \\W \\w \\S \\s", "''");
rsNname = rsNname.replaceAll("[+.-^]", "''");
rsNname = rsNname.replaceAll("[$&+,:;=?@#|'<>.^*()%!-]", "''");
rsNname = rsNname.replaceAll("['++]", "\\''");
Nomatter what I do I get a compli error "Derefferencing pointer
error". Any one have any suggestions.
I could write code to do the same but seems better to do in one
commane.
Thanks in advance
this one. All I want to do is replace a string with another string. In
this case a ' replaced with ''.
I am trying:
rsNname = rsNname.replaceAll("\\d \\D \\W \\w \\S \\s", "''");
rsNname = rsNname.replaceAll("[+.-^]", "''");
rsNname = rsNname.replaceAll("[$&+,:;=?@#|'<>.^*()%!-]", "''");
rsNname = rsNname.replaceAll("['++]", "\\''");
Nomatter what I do I get a compli error "Derefferencing pointer
error". Any one have any suggestions.
I could write code to do the same but seems better to do in one
commane.
Thanks in advance