Click here to Skip to main content
15,041,393 members
Home / Discussions / Regular Expressions
   

Regular Expressions

 
GeneralRe: String Replacement in 'HTML 5 FireFox' Pin
Member 1357268429-Dec-20 9:45
MemberMember 1357268429-Dec-20 9:45 
GeneralRe: String Replacement in 'HTML 5 FireFox' Pin
OriginalGriff29-Dec-20 10:05
mveOriginalGriff29-Dec-20 10:05 
GeneralRe: String Replacement in 'HTML 5 FireFox' Pin
Dave Kreskowiak29-Dec-20 16:15
mveDave Kreskowiak29-Dec-20 16:15 
GeneralRe: String Replacement in 'HTML 5 FireFox' Pin
Member 1357268430-Dec-20 11:08
MemberMember 1357268430-Dec-20 11:08 
GeneralRe: String Replacement in 'HTML 5 FireFox' Pin
Dave Kreskowiak30-Dec-20 11:47
mveDave Kreskowiak30-Dec-20 11:47 
GeneralRe: String Replacement in 'HTML 5 FireFox' Pin
Member 1357268430-Dec-20 11:54
MemberMember 1357268430-Dec-20 11:54 
GeneralRe: String Replacement in 'HTML 5 FireFox' Pin
Dave Kreskowiak30-Dec-20 11:57
mveDave Kreskowiak30-Dec-20 11:57 
QuestionCase Conversion Regular Expression in JAVA 8 Pin
Member 1357268427-Dec-20 22:13
MemberMember 1357268427-Dec-20 22:13 
Hi Community,

I have come to the conclusion that it may not to be possible to change the case of a string in JAVA 8 as simply as it is to change the case in say Perl.

However, before I move on, I just wanted to have someone on this forum confirm its not possible to change the case in JAVA 8 as follows:

Insert the whole regex match or the 1st through 99th backreference with the first letter of each word in the matched text converted to uppercase and the remaining letters converted to lowercase.

Example

Replacing .+ with \I0 in HeLlO WoRlD yields Hello World

Can someone confirm that the above isn't possible with JAVA 8?

If its not possible, can someone let me know how to achieve the above with JAVA 8?

Thanks
AnswerRe: Case Conversion Regular Expression in JAVA 8 Pin
Richard MacCutchan27-Dec-20 22:48
mveRichard MacCutchan27-Dec-20 22:48 
GeneralRe: Case Conversion Regular Expression in JAVA 8 Pin
Member 1357268428-Dec-20 8:30
MemberMember 1357268428-Dec-20 8:30 
AnswerRe: Case Conversion Regular Expression in JAVA 8 Pin
Member 1357268428-Dec-20 8:32
MemberMember 1357268428-Dec-20 8:32 
QuestionHow to namn this? Pin
Xfinger Fxinger24-Dec-20 19:40
MemberXfinger Fxinger24-Dec-20 19:40 
AnswerRe: How to namn this? Pin
PIEBALDconsult24-Dec-20 19:45
professionalPIEBALDconsult24-Dec-20 19:45 
QuestionRegular Expression to Change Uppercase Text to Lowercase Pin
Member 1357268424-Dec-20 2:44
MemberMember 1357268424-Dec-20 2:44 
SuggestionRe: Regular Expression to Change Uppercase Text to Lowercase Pin
Richard MacCutchan24-Dec-20 4:20
mveRichard MacCutchan24-Dec-20 4:20 
GeneralRe: Regular Expression to Change Uppercase Text to Lowercase Pin
Member 1357268424-Dec-20 5:13
MemberMember 1357268424-Dec-20 5:13 
GeneralRe: Regular Expression to Change Uppercase Text to Lowercase Pin
Richard MacCutchan24-Dec-20 5:18
mveRichard MacCutchan24-Dec-20 5:18 
GeneralRe: Regular Expression to Change Uppercase Text to Lowercase Pin
Member 1357268424-Dec-20 5:28
MemberMember 1357268424-Dec-20 5:28 
GeneralRe: Regular Expression to Change Uppercase Text to Lowercase Pin
Richard MacCutchan24-Dec-20 5:32
mveRichard MacCutchan24-Dec-20 5:32 
GeneralRe: Regular Expression to Change Uppercase Text to Lowercase Pin
Member 1357268424-Dec-20 5:35
MemberMember 1357268424-Dec-20 5:35 
GeneralRe: Regular Expression to Change Uppercase Text to Lowercase Pin
Richard MacCutchan24-Dec-20 5:45
mveRichard MacCutchan24-Dec-20 5:45 
GeneralRe: Regular Expression to Change Uppercase Text to Lowercase Pin
Member 1357268424-Dec-20 6:11
MemberMember 1357268424-Dec-20 6:11 
GeneralRe: Regular Expression to Change Uppercase Text to Lowercase Pin
Member 1357268424-Dec-20 8:13
MemberMember 1357268424-Dec-20 8:13 
GeneralRe: Regular Expression to Change Uppercase Text to Lowercase Pin
Member 1357268425-Dec-20 8:41
MemberMember 1357268425-Dec-20 8:41 
AnswerRe: Regular Expression to Change Uppercase Text to Lowercase Pin
Gerry Schmitz24-Dec-20 4:57
mveGerry Schmitz24-Dec-20 4:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.