SoFunction
Updated on 2025-03-10

Regular expression practice in EditPlus (5)

Related readings:

Regular expressions in EditPlus Practical (1)

Regular expressions in EditPlus Practical (2)

EditPlus Regular Expression Practical (3)

Regular expressions in EditPlus Practical (4)

Regular expression practice in EditPlus (5)

Regular expression practice in EditPlus (6)

HUANZHEXMPatient name 
SHENFENZHID card 
RUYUANSJAdmission time 
RUYUANKSMCName of the admission department 
CHUYUANSJDischarge time 
CHUYUANKSMCName of discharge department 
RUYUANZZDDMAdmission Diagnostic Code 
RUYUANZZDMCAdmission diagnosis name 
CHUYUANZZDDMDischarge diagnosis code 
CHUYUANZZDMCDischarge diagnosis name 
YILIAOJGMCName of hospitalization institution 
ZYTSNumber of days of hospitalization 
FUWUJGMCName of the organization to which the health record belongs 
INSERTDATEData generation time 

The above code should be written in the following format:

HUANZHEXM, 
SHENFENZH, 
RUYUANSJ, 
RUYUANKSMC, 
CHUYUANSJ, 
CHUYUANKSMC, 
RUYUANZZDDM, 
RUYUANZZDMC, 
CHUYUANZZDDM, 
CHUYUANZZDMC, 
YILIAOJGMC, 
ZYTS, 
FUWUJGMC, 
INSERTDATE, 

Find item input: ([A-Z].*[A-Z])([^A-Z].*[^A-Z])

Replacement entry:\1,

Semantic analysis:

[A-Z].*[A-Z] Find the beginning of letters and end of letters
[^A-Z].*[^A-Z] Find non-letter beginning and ending

The above is the actual regular expression practice in EditPlus introduced to you by the editor (5). I hope it will be helpful to you. If you have any questions, please leave me a message and the editor will reply to you in time. Thank you very much for your support for my website!