We help IT Professionals succeed at work.
Get Started

Regular Expression Help: Replace in UltraEdit

neal_harmon
neal_harmon asked
on
2,048 Views
Last Modified: 2013-12-13
hopefully this will come out right....

i have a text file that needs to have instances of GA replaced with GC...I was passed the following 2 commands from a unix guy (and i'm a windows guy) - so here is the disconnect!

1) how would I use these inside UltraEdit

2) what exactly (in english) is the function they are performing...i don't know what all the switches are commanding it to do.


1,$s/^\(C[0-9][0-9][A-Z][A-Z]      \)\([A-Z][A-Z]\)/\1GC  


1,$s/^\([C-Z][0-9][0-9]\)\([A-Z][A-Z]\)/\1GC  


Thanks!!!!!!
Comment
Watch Question
Engineer
CERTIFIED EXPERT
Commented:
This problem has been solved!
Unlock 1 Answer and 2 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE