• 0

Help with Regular Expressions (regex)


Question

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

There have been no answers to this question yet

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.