Click here to Skip to main content
12,816,654 members (35,732 online)
Rate this:
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
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web01 | 2.8.170308.1 | Last Updated 18 Sep 2012
Copyright © CodeProject, 1999-2017
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