I'm trying to decode a bunch of random text. The "I" characters are replaced with "1" and the "l" are also replaced with 1.
An examples of a text:
1.Wi11.Find.You ----> I.Will.Find.You
1n.A.Minute -----> In.A.Minute
So I know that all 1s before lower-case characters are always "l". And 1s that have leading lower-case characters are always "I". I just need help writing a regular expression for these rules.
Question
bunker
I'm trying to decode a bunch of random text. The "I" characters are replaced with "1" and the "l" are also replaced with 1.
An examples of a text:
1.Wi11.Find.You ----> I.Will.Find.You
1n.A.Minute -----> In.A.Minute
So I know that all 1s before lower-case characters are always "l". And 1s that have leading lower-case characters are always "I". I just need help writing a regular expression for these rules.
Link to comment
Share on other sites
0 answers to this question
Recommended Posts