[SOLVED] Need help pls: InlinePattern capturing parts of string
Posted: February 14th, 2017, 3:45 am
I have a string meter that shows time (hs), date (date:month:day) as shown:
1127471402TUE
The first 2 pairs of digits are the time (i.e., 1127), the third pair (i.e. 47) are the seconds, the 4th and 5th pair are the date (i.e. 1402, as in 14 Feb), and the last the day (i.e. TUE).
How do I use InlinePattern to capture parts of the string so that the string appears as
1127471402TUE
I started with
and managed to capture the first 4 digits, but sadly that's as far as I was able to progress.
I understand InlinePattern is compatible to PCRE. I went to that site, but just could not understand how to do it.
Can anyone please help? Can anyone point me to the right direction where the the PCRE expressions are explained?
1127471402TUE
The first 2 pairs of digits are the time (i.e., 1127), the third pair (i.e. 47) are the seconds, the 4th and 5th pair are the date (i.e. 1402, as in 14 Feb), and the last the day (i.e. TUE).
How do I use InlinePattern to capture parts of the string so that the string appears as
1127471402TUE
I started with
Code: Select all
InlineSetting=Color|255,0,0,255
InlinePattern=^\d\d\d\d
InlineSetting2=Color|0,0,255,255
InlinePattern2=
I understand InlinePattern is compatible to PCRE. I went to that site, but just could not understand how to do it.
Can anyone please help? Can anyone point me to the right direction where the the PCRE expressions are explained?