Click here to Skip to main content
15,884,473 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Consider a string
DummyColumnVaEPSI_t_LoresSubCyl_T6[x]_[27] > (VaEPSI_t_LoresSubCyl_T6[x]_[16] + VaEPSI_t_LoresSubCyl_T6[x]_[27])

Now when I replace VaEPSI_t_LoresSubCyl_T6[x]_[27] by 'VaEPSI_t_LoresSubCyl_T6[x]_[27]'.
output shown is
DummyColumn'VaEPSI_t_LoresSubCyl_T6[x]_[27]' > (VaEPSI_t_LoresSubCyl_T6[x]_[16] + 'VaEPSI_t_LoresSubCyl_T6[x]_[27]')

I want only exact string match as

DummyColumnVaEPSI_t_LoresSubCyl_T6[x]_[27] > (VaEPSI_t_LoresSubCyl_T6[x]_[16] + 'VaEPSI_t_LoresSubCyl_T6[x]_[27]')

Plz help
Posted

1 solution

So include a space before the match string, and in the replacement.
AAAABBB > (CCC + BBB)
Search for " BBB" and replace it with " 'BBB'"
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900