How to do a string replacement with a special characters?
Hi there, I've a string which I need to do a replacement in but replaced and/or replacement contain a special chars.
I.e. like this:
newConvertedString = newConvertedString.replaceAll("</soapenv:Body>", "");
newConvertedString = newConvertedString.replaceAll("<default:edit-config>", "</default:edit-config>");
It does not do anything. I know that repalceAll(regexc., regexp.) but what can I use instead??
Thanks ina advance
qavlad wrote:
Thanks 'jverd'. Just one more question - do you know if there any limit on the replacement string/regex used with/in .replaceAll()??No, the only limit would be the limit on how big a string can be and how much memory you have. However, anpoorly written regex on a long String will take a long time to execute.
Seems like when I'm trying to replace one like this (and even a longer ones) it does not replace anything while it's there.
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header><wsse:Security xmlns:wsss="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:wssa="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
Then there was no match.
Similar Messages
-
How to use regular expression replace for this special characters?
hi,
I need to replace the below string, but i couldnt able to do if we use the special charaters '+', '$' . can anyone suggest a way to do this?
select REGEXP_REPLACE('jan + feb 2008','jan + feb 2008', 'feb',1,0,'i') from dual
anwers should be :- febyou should use escape character \.
the regular expression will look like as follows:
select REGEXP_REPLACE('jan + feb 2008','jan \+ feb 2008', 'feb',1,0,'i') from dual
hope this is what you needed.
cheers,
Davide -
How do I add strings together with JSTL?
How do I add strings together with JSTL?
Thanks,
JNJust include them together in an expression string.
For printing
<c:out value="${user.lastName}, ${user.firstName}"/>
or with a set statement
<c:set var="fullName" value="${user.lastName}, ${user.firstName}"/> -
Transfer/Reply to emails with french special characters - BB 9360
Hi,
I've got a problem when I reply/transfer to mails with french special characters (such as "é" "è" "ç" etc..) => all the special characters are replaced with strange characters such as chinese letters or others.
No problem when I send an email with those same characters, it appears only when transfer or reply and only on special characters contained in the original mail I transfer/reply to.
is there a way to solve this issue?
thankswhile pressing the 'e' key, scroll your trackball side to side, you will find the various e variations.
You can do that with most keys to get special characters.
1. If any post helps you please click the below the post(s) that helped you.
2. Please resolve your thread by marking the post "Solution?" which solved it for you!
3. Install free BlackBerry Protect today for backups of contacts and data.
4. Guide to Unlocking your BlackBerry & Unlock Codes
Join our BBM Channels (Beta)
BlackBerry Support Forums Channel
PIN: C0001B7B4 Display/Scan Bar Code
Knowledge Base Updates
PIN: C0005A9AA Display/Scan Bar Code -
Problem with Icelandic special characters on Mac
Hello
I am working on a Flash publication for students, and I want it to run on Mac as well as PC. Everything goes fine, except a problem with three special characters in my language, Icelandic. I am working on a registration and login page where I am using text boxes and text input boxes. Everything looks correct on PC, but on Mac the characters Þ Ð Ý are lost.
I have tried different fonts etc.
Any idea what is wrong?
Jónas HelgasonHello Jónas,
Did you ever figure this out ?
I have a similar problem except only with two letters (both upper and lower case). These two Icelandic letters can't be entered into a Flex TextInput box in the Flex apps I am creating when they are loaded on a Mac. The letters are known as &Eth, ð, &Thorn and þ in HTML terminology. Typing these characters on the keyboard results in the following: { [ ? /
However I can copy the characters in question from some other app like TextEdit and paste them into a TextInput box in my Flex app and all is well, they show up correctly.
This happens regardless of the Mac browser used and the Flash plugin version used (have tried both 9 and 10) and also happens in the standalone Flash Player application.
Does anyone have any idea how to fix this or is this a bug in Flash Player ? This is really annoying as it makes text input into Flex apps on Icelandic Macs very difficult.
There must be something wrong with the mapping of keyboard key codes into character codes on the Mac that is causing this.
Btw, I just heard from a friend that this problem does not exist in MacOS 10.6. I am running 10.4 and have tested this on 10.5 and it exists on both of those OS versions.
Rgds,
Hordur Thordarson
Lausn hugbunadur
http://lausn.is -
Is it possible to search for strings containing spaces and special characters?
In our RoboHelp project, there are figures with text labels such as Figure 1, Figure 3-2, etc.
When I search for "Figure 3" I get all pages containing "Figure" and "3", even if I surround it in quotes. Similarly, searching for "3-2" treats the '-' character as a space and searches for all pages containing '3' or '2'.
Is there a way to search for strings containing spaces and special characters?In that case I think the answer is no if you are using the standard search engine. However I believe that Zoom Search does allow this type of searching. Check out this link for further information.
http://www.grainge.org/pages/authoring/zoomsearch/zoomsearch.htm
The RoboColum(n)
@robocolumn
Colum McAndrew -
<blockquote>Locking duplicate thread.<br>
Please continue here: [/questions/815207]</blockquote><br>
if i try to download a file with any special characters in file name (e.g. File_Name.pdf), it doesn't reconvert them from the "sanitize url" process and download the file an incorrect name (e.g. File%5FName.pdf).
This is really annoying.
Thank you for your patientStart Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
* Don't make any changes on the Safe mode start window.
* https://support.mozilla.com/kb/Safe+Mode
* [[Troubleshooting extensions and themes]] -
Hi,
for jabber 9.1 integration i sync'ed all users at Callmanager, Presence and Unity to our LDAP (MS AD). with CUCM and Presence (both 8.6.x), it works fine, just Unity Connection sync the Users from AD, but i cannot import Users with german special characters ä, ö, ü (i.E. German Name in LDAP-su: Müller).
Jabber 9.1 need for Voicemail Integration the AD Authentication. Know somebody, if there is an Workaraound or Fix ?
This is a general issue, with or without Jabber, with sync directly from AD, or indirectly through CUCM (sync'ed with AD)
thx and regards
JackyI located an identical defect (CSCts28455) that was closed as unreproducible. The defect references CSCtj73444 "Add support for UTF-8 password to LDAP and RADIUS/MSCHAP" which is added to 8.4.2 with the recommendation of RADIUS/MSCHAP or LDAP only for international character support. It would make sense to go to the latest in your current train (ie: 8.4.4.1.ED) and see if the issue remains. What you want to do appears to be supported.
Matthew -
How to test if String starts with a Range of numbers
Hello,
I'm reading in a line from a text file and I want to see if that line starts with numbers.
I know there is
String temp = file.readline();
if (String temp.startsWith(?1-9?); // want to check if string starts with 1 thru 9
Thanks!Try the following:
String temp = file.readline();
if (temp.equals("1") || temp.equals("2")....... || temp.equals("9") {
System.out.println("String is beetween 1 - 9");
else{
System.out.println("String is not beetween 1 - 9");
Replace the "....." by the other values... I know it's quite long, but it should work... must be an easier way though...
Pierre -
How to set a string field with people picker control group
Hi Guys
I have a problem with a form list, when I need to set a string field with de content of people picker control that have more than one "user".
Is there any way to put in string a list of user like the people picker control shows in a form?
The really problem is I don't know how to read an array of user in a formula rule.
any example or idea should be appreciated.
tnks.Hi ,
Please try out in following way :
/// <summary>
/// Set value to people picket control
/// </summary>
/// <param name="key"></param>
/// <param name="ppl"></param>
/// <param name="item"></param>
private void SetDatatoPeopleEditor(string key, PeopleEditor ppl, SPListItem item)
try
if (item[key] != null)
string users = string.Empty;
SPFieldUserValueCollection userCol = new SPFieldUserValueCollection(web, item[item.Fields.GetField(key).Id].ToString());
foreach (SPFieldUserValue usrItm in userCol)
users += usrItm.User.ToString() + ",";
ppl.CommaSeparatedAccounts = users.Remove(users.LastIndexOf(","), 1);
catch (Exception ex)
lblErrorMessage.Text = ex.Message;
private SPUser GetAccountName(PeopleEditor accountPE)
SPUser user = null;
string strAccountName = String.Empty;
try
for (int i = 0; i < accountPE.ResolvedEntities.Count; i++)
PickerEntity objEntity = (PickerEntity)accountPE.ResolvedEntities[i];
user = web.AllUsers[objEntity.Key];
return user;
catch (Exception ex)
return user;
It works for me . -
How do I create a connection with a special character (!) in the password ?
Oracle 11.2.0.3 EE on Solaris
SQL*Developer 3.1.0.6 on Windows 7
Due to security requirements our passwords contain an exclamation mark (!) but I can't get SQL*Developer to recognize it.
I've tried to put it in quotes, escaping it and even swearing at it but to no avail.
I get the famous ORA-1017-Invalid username/password
It seems to be no trouble for TOAD!!
Many thanks!
-garyThe solution has been found!!
I finally saw a error in the message tab at the bottom of the screen: error 108 o.jdbc.driver.OracleDriver Error while registering Oracle JDBC Diagnosability MBean.
According to Oracle Support Note:469494.1 I had a conflict with having two (2) versions of SQL*Developer on my laptop.
The first was downloaded and installed as a standalone product. This was followed up by installing the 11g Client which also contains a version of SQL*Developer, albeit a much older version. This caused a JDBC library conflict of some kind.
As per the note, since I only had one (1) Oracle Home, I renamed the %ORACLE_HOME%/jdbc/lib directory to lib$.
That seems to force the use of the newer jdbc library files and all seems to be good.
Turned out not to be anything related to the special characters in the password even though the popup message indicated that was the issue.
Thanks for all the help!!
-gary -
Problems with Turkish special characters
Hello!
We are producing Oracle Help with WebWorks Publisher 2003 Professional for FrameMaker. There are some problems with the Turkish version of our online help: The Turkish special characters (for example the dotless i) aren´t displayed correctly in the navigation panes TOC and index. They are replaced by other characters (for example by a "y")
Has anyone an idea how to solve this problem?
Thank you very much.
Kind regards,
Miriam RassenhoferMiriam,
What encoding are the TOC and index XML files being generated in? You should use UTF-8 for the minimum of problems. I presume WebWorks has an option for this. Other than that, make sure the top of those XML files has the proper XML declaration with the encoding:
<?xml version="1.0" encoding="UTF-8"?>You may want to try opening the XML files in an XML-aware text editor to ensure they look right there (JDeveloper is one such editor).
If all of that is working, post back and we can talk offline about getting a snippet of one of those XML files for us to look at.
-brian -
A name should not start with any special characters
I need to put a condition in iF statement such that a name that is given by the user should not start with any special charecters.A dialog box should display indicating this conditon.Can u plz give sample code for this.My code is as below.
//text box for giving the name
JTextFeild ReportNameText;
//the name is stored in String
String name=ReportNameText.getText();
//Here tell me how the if condition should be written
//condition to be mentionedAlready asked, and answered, here: http://forum.java.sun.com/thread.jspa?threadID=727919
See reply 4 in that thread, and scsi-boy's suggestion of writing another
method to check for "special" characters. And the links to the String
and Character API documentation given. -
WiFi Network Name with Underscore Special Characters Issue
Turns out that iPod Touch doesn't like wireless network names with special characters (e.g. underscores) in them (I had 2 underscores in mine).
It will establish a connection, get an IP address, even use WEP but won't talk to the Internet if the wireless access point name has an underscore in it. If you can change your wireless network name to remove the special characters the iPod Touch becomes very and will connect using the Internet.I'm looking for a way to escape all characters (not only the minus sign) except for a specific character. Kind of like 'unescaping' a specific character (the '%' sign) within braces {}What about if you apply a function like regexp_replace to escape all known "specific characters", and then unescape the particular specific character again back as e.g. in
SQL> select 'a.da-df%df*' str, replace (
regexp_replace (
'a.da-df%df*',
'([[:punct:]])',
'\\\1'
str2
from dual
STR STR2
a.da-df%df* a\.da\-df%df\*
1 row selected.i.e. don't escape with curly brackets but with the backslash character.
You can then use this string in your query like in
WHERE CONTAINS(r.POI_NAME, '<query> <textquery grammar="context"> <progression><seq>'
||'aaab'
||'</seq><seq>'
||'aaa\-b'
||'%</seq></progression> </textquery> </query> ' ,1)> 2 -
Problems with using special characters in Interactive Report Search
Hi!
I am currently developing an Application on Application Express 3.1.2.00.02 including a page with an Interactive Report, facing the problem that I cannot use special german characters in the Searchbar.
So if i try to find a name like 'Schröder' the created Filter looks like this 'Schröder' and i won't get any valid search results. By the way the rest of the application supports these special characters like using them in Buttons or any other Page elements.
Does anyone have a clue how to fix this problem, because it's driving me nuts ;)
Thanks in advance
Philipp
Edited by: philipp_m on 10.06.2009 11:15Does noybody have a clue how to solve this problem. I tried to find out where the Problem occures. The Ajax Request looks like this
f01 contains
f01 Schröder
f01 15
p_flow_id 100
p_flow_step_id 50
p_instance 3176950818119673
p_request APXWGT
p_widget_action QUICK_FILTER
p_widget_action_mod ADD
p_widget_mod ACTION
p_widget_name worksheet
p_widget_num_return 15
x01 14175446766823030
x02 14176526259823035
So I guess it has to be inside the Javascript file (apex_ns_3_1.js). I hope someone can help me.
Bye
Philipp
Maybe you are looking for
-
I have a problem when updating applications on iOS 7.0.2
I have a problem when updating apps on iOS 7.0.2 to go to the appstore I get the update but only tells me open, not update, I have to uninstall and reinstall te app and gives me the option to update. Sorry my bad english
-
Had error while updating Itunes to ver 11.1.4. I had 11.1.3.8 previously. Following instructions for Removing and Reinstalluing iTunes and other software components. Was able to uninstall iTunes and Apple Software Update, but attempts to do the same
-
mmy iPad Air looses connection often even though the signal is really strong and other devices stay connected? The latest iPad HW with the latest available SW.
-
Dynadock w. DVI, phase 2
Hello, looking through the dynadock manual (available online for download on the Toshiba homepage) I could not quite figure out whether Dynadock will be able to transmit the resolution of 1400 x 1050 (SXGA+) to an external monitor. Our Notebook would
-
How to limit the creation of the selection screen variant
Hi, I have a question concerning the selection screen variants. Is it possible to limit the number of variant created by users (in customizing, authorization..) ? If, yes, can you please tell me the procedure to follow. thanks for help.