Question about regular expressions
Posted: 30 Apr 2025 17:25
This is rather embarrassing to admit... I've been using Unix-style regular expressions for decades now, but when it comes to search-and-replace operations, I've always been a little uncertain about formatting... I wonder if anyone could advise me here?? This is specifically in the context of S&R in RJTE...
In my ongoing UNICODE conversions, I have countless lines of the form:
which need to be converted to:
I've been doing these changes in two parts; first convert to , then convert to
with regex disabled... this works, but I'm hesitant to do a global change because I worry about unintended consequences...
What I would like to do is convert the entire line in one regex operation, but I'm really unsure of the format;
probably it is something like:
source:
dest:
I know a *lot* of escaping of characters will probably be required, but I don't know details...
Could somebody advise on this???
In my ongoing UNICODE conversions, I have countless lines of the form:
Code: Select all
put_message("this is a sample message");
Code: Select all
put_message(_T("this is a sample message"));
Code: Select all
("
Code: Select all
(_T("
Code: Select all
") ;
Code: Select all
")) ;
What I would like to do is convert the entire line in one regex operation, but I'm really unsure of the format;
probably it is something like:
source:
Code: Select all
put_message("[*]");
Code: Select all
put_message(_T("[*]"));
Could somebody advise on this???