Replace 10th character if 4th-8th character contains equals "B490" in a text file

What codes can I use in Notepad++ to replace 10th character to "234" of each line if the 4th-8th character contains "B490"?
rowfeiAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

AndyAinscowFreelance programmer / ConsultantCommented:
I don't think you can with notepad++
0
KimputerCommented:
Can be done with VBS, but since you're in the .Net programming section anyway, it's also better to have it as .Net, and you can have it use console, drop down to form, or send to app.
What would you have against such a solution?
0
Rgonzo1971Commented:
Hi,

In Notepad++
Find What
((.{4}B490.)|(.{3}B490.{2}))(.)

Open in new window

Replace With
\1234

Open in new window

Search Mode Regular expression

Regards
0
CompTIA Network+

Prepare for the CompTIA Network+ exam by learning how to troubleshoot, configure, and manage both wired and wireless networks.

rowfeiAuthor Commented:
Thanks, Rgonzo1971. Sorry for the unclear question. Below is what I am trying to get. Search all lines contains FE450, then replace 3rd-5rd character to "ZZZ."

What codes should I use?

Example file:
123AAA345FE450DERWQQW
234BBB335DDFFFEEDFE450E
345CCC234ERFDF3FR06GE

My wish :-)

123ZZZ345FE450DERWQQW
234ZZZ335DDFFFEEDFE450E
345000234ERFDF3FR06G
0
Rgonzo1971Commented:
then try
find what
(.{3})(.{3})(.*)(FE450)(.*)

Open in new window

replace with
\1ZZZ\3\4\5

Open in new window

choose REgex and untick .Matches newline
0
Rgonzo1971Commented:
or simply
(.{3})(.{3})(.*?)(FE450)

Open in new window

and
\1ZZZ\3\4

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
rowfeiAuthor Commented:
Yes, it works!!!! Thank you so much!!!
0
Rgonzo1971Commented:
Solution according to author's  comment
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.