Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
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 18-Sep-12 0:27am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

So include a space before the match string, and in the replacement.
Search for " BBB" and replace it with " 'BBB'"

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

  Print Answers RSS
0 OriginalGriff 7,105
1 DamithSL 5,079
2 Maciej Los 4,866
3 Sergey Alexandrovich Kryukov 4,617
4 Kornfeld Eliyahu Peter 4,384

Advertise | Privacy | Mobile
Web03 | 2.8.141223.1 | Last Updated 18 Sep 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100