locked
VS Tool Find and Replace RRS feed

  • Question

  • User-165120152 posted

    Hi guys, 

    I'm using VS code to develop the html page, my page with some class like .Box, .Box-child1, Box-child2, jsut a sample, really more than these.   

    I suppose to use VS regex function to find Box, Only just need found Box instead of includ .Box-child1, Box-child2, could you provide a sample or code to achieve it? 

    Note: If I post the wrong place, please note me! 

    Queen 

     

    Thursday, November 15, 2018 9:39 AM

Answers

  • User61956409 posted

    Hi QueenYe,

    I'm using VS code to develop the html page, my page with some class like .Box, .Box-child1, Box-child2, jsut a sample, really more than these.   

    I suppose to use VS regex function to find Box, Only just need found Box instead of includ .Box-child1, Box-child2, could you provide a sample or code to achieve it? 

    You can try to use .Box(?!-). to find only class .Box.

    With Regards,

    Fei Han

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, November 16, 2018 5:51 AM

All replies

  • User61956409 posted

    Hi QueenYe,

    I'm using VS code to develop the html page, my page with some class like .Box, .Box-child1, Box-child2, jsut a sample, really more than these.   

    I suppose to use VS regex function to find Box, Only just need found Box instead of includ .Box-child1, Box-child2, could you provide a sample or code to achieve it? 

    You can try to use .Box(?!-). to find only class .Box.

    With Regards,

    Fei Han

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, November 16, 2018 5:51 AM
  • User-165120152 posted

    Hi Fei Han,

    Thanks for you help me solved issue, I suppose to filter class name only through specify word actually, because of more class name like Box1, child1-box, so I need only get the class .Box, could you tell me the regual expression? 

    Queen

    Monday, November 19, 2018 1:28 AM