regex to convert j to character

O

Oliver Wong

Knute Johnson said:
String.replaceAll("\\&\\#106",J");

Don't forget the semicolon at the end.

You might be able to generalize this by matching any number between the
hash and the semicolon (as opposed to only 106), and then selecting which
character to replace with based on what number was matched -- depending on
whether or not that was what you wanted to do in the first place, of course.


- Oliver
 
R

RedGrittyBrick

Knute said:
It was late. I got 83% of his characters :).

The other 17% were caught by the solution to the identical question the
OP multiposted to comp.lang.perl.misc
 
K

Knute Johnson

RedGrittyBrick said:
The other 17% were caught by the solution to the identical question the
OP multiposted to comp.lang.perl.misc

There you go, I should have just gone to bed!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,904
Latest member
HealthyVisionsCBDPrice

Latest Threads

Top