I'm just learning regex's and my script works, but it's pretty nasty and I know there is a more efficient way of doing it. Here's the example:
$input = "AABBCC";I'm searching through the string and replacing with a decimal value, which I'm using the split function on the space later in my script. Is there a way to write one regex that will search for each different letter and replace it with a different value? I've searched around but can't find anything that good.
Thanks in advance.In reply to regex question by nate_
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |