Click here to Skip to main content
15,510,483 members
Home / Discussions / Regular Expressions
   

Regular Expressions

 
GeneralRe: Replace certain characters in part of string? Pin
w 3g23-Mar-21 1:21
w 3g23-Mar-21 1:21 
QuestionRegex only want the first match Pin
Member 150872251-Mar-21 12:04
Member 150872251-Mar-21 12:04 
AnswerRe: Regex only want the first match Pin
Aghast (nj)9-Mar-21 18:53
Aghast (nj)9-Mar-21 18:53 
Questionregex pattern in order to get a list of numbers from a string Pin
Rafael Soteldo17-Feb-21 5:48
Rafael Soteldo17-Feb-21 5:48 
AnswerRe: regex pattern in order to get a list of numbers from a string Pin
Aghast (nj)9-Mar-21 18:51
Aghast (nj)9-Mar-21 18:51 
QuestionString Replacement in 'HTML 5 FireFox' Pin
Member 1357268429-Dec-20 1:47
Member 1357268429-Dec-20 1:47 
AnswerRe: String Replacement in 'HTML 5 FireFox' Pin
OriginalGriff29-Dec-20 1:54
mveOriginalGriff29-Dec-20 1:54 
GeneralRe: String Replacement in 'HTML 5 FireFox' Pin
Member 1357268429-Dec-20 2:04
Member 1357268429-Dec-20 2:04 
GeneralRe: String Replacement in 'HTML 5 FireFox' Pin
OriginalGriff29-Dec-20 2:39
mveOriginalGriff29-Dec-20 2:39 
GeneralRe: String Replacement in 'HTML 5 FireFox' Pin
Member 1357268429-Dec-20 2:51
Member 1357268429-Dec-20 2:51 
GeneralRe: String Replacement in 'HTML 5 FireFox' Pin
OriginalGriff29-Dec-20 3:23
mveOriginalGriff29-Dec-20 3:23 
GeneralRe: String Replacement in 'HTML 5 FireFox' Pin
Member 1357268429-Dec-20 10:20
Member 1357268429-Dec-20 10:20 
GeneralRe: String Replacement in 'HTML 5 FireFox' Pin
OriginalGriff29-Dec-20 10:35
mveOriginalGriff29-Dec-20 10:35 
GeneralRe: String Replacement in 'HTML 5 FireFox' Pin
Member 1357268429-Dec-20 10:45
Member 1357268429-Dec-20 10:45 
GeneralRe: String Replacement in 'HTML 5 FireFox' Pin
OriginalGriff29-Dec-20 11:05
mveOriginalGriff29-Dec-20 11:05 
GeneralRe: String Replacement in 'HTML 5 FireFox' Pin
Dave Kreskowiak29-Dec-20 17:15
mveDave Kreskowiak29-Dec-20 17:15 
GeneralRe: String Replacement in 'HTML 5 FireFox' Pin
Member 1357268430-Dec-20 12:08
Member 1357268430-Dec-20 12:08 
GeneralRe: String Replacement in 'HTML 5 FireFox' Pin
Dave Kreskowiak30-Dec-20 12:47
mveDave Kreskowiak30-Dec-20 12:47 
GeneralRe: String Replacement in 'HTML 5 FireFox' Pin
Member 1357268430-Dec-20 12:54
Member 1357268430-Dec-20 12:54 
GeneralRe: String Replacement in 'HTML 5 FireFox' Pin
Dave Kreskowiak30-Dec-20 12:57
mveDave Kreskowiak30-Dec-20 12:57 
QuestionCase Conversion Regular Expression in JAVA 8 Pin
Member 1357268427-Dec-20 23:13
Member 1357268427-Dec-20 23: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 23:48
mveRichard MacCutchan27-Dec-20 23:48 
GeneralRe: Case Conversion Regular Expression in JAVA 8 Pin
Member 1357268428-Dec-20 9:30
Member 1357268428-Dec-20 9:30 
AnswerRe: Case Conversion Regular Expression in JAVA 8 Pin
Member 1357268428-Dec-20 9:32
Member 1357268428-Dec-20 9:32 
QuestionHow to namn this? Pin
Xfinger Fxinger24-Dec-20 20:40
Xfinger Fxinger24-Dec-20 20:40 

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.