Thursday 15 May 2014

regex - FINDSTR to find spaces -



regex - FINDSTR to find spaces -

i unable find space appearing after opening , before closing of tags/elements. using below line obtain html elements

findstr /n /o /r /c /s "<p[^>]*>" *.html >> tag.log findstr /n /o /r /c /s "</p[^>]*>" *.html >> tag.log

i want find elements contains space after opening , closing of elements/tags

please help me

i using windows 7

thanks in advance

findstr /n /o /r /s /c:"<p[^>]*> " /c:"</p[^>]*> " *.html > tag.log

you need property indicate search strings /c:"...." switches , include spaces in quoted expression

regex batch-file findstr

No comments:

Post a Comment