Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- can u help me with an issue.. i have a list of words that are placed inside a text file.. the words are single words listed without double quotes line by line. and i have wrote a function to delete the entire line if these words exists. So what my issue is `my input text files` are of two formats one `without double quotes` and one `with double quotes`.
- `List of words to delete`
- [DELETE]
- DO NOT INSTALL
- do not install
- (Place wires)
- Notfitted
- top
- 1206 - CAPACITOR
- DNI
- dni
- +12V
- +15V
- +24V
- +3.3V
- +48V
- +5V
- -12V
- -15V
- SENSE1
- FIELD1
- GND1
- GND2
- GND3
- GND4
- GND5
- GND6
- `first input Text format`...
- Designator MAX PN Footprint Center-X(mm) Center-Y(mm) Layer
- ggA1 100-0009 1206 - CAPACITOR 42.164 114.109 top
- C1A1 150-0009 1206 - CAPACITOR 42.164 114.109 bottom
- C21 100-0009 1206 - CAPACITOR 42.164 114.109 top
- CSA1 104-0009 1206 - CAPACITOR 42.164 114.109 bottom
- CSA1 107-0009 1206 - CAPACITOR 42.164 114.109 bottom
- MAA1 109-0009 1206 - CAPACITOR 42.164 114.109 bottom
- `Secondinput input text format`..
- Designator MAX PN Footprint Center-X(mm) Center-Y(mm) Layer
- "C10" "100-0009" "1206 - CAPACITOR" "122.492" "69.469" "bottom"
- "C100" "100-0009" "1206 - CAPACITOR" "264.211" "12.814" "top"
- "C102" "100-0009" "1206 - CAPACITOR" "251.346" "11.201" "bottom"
- "C105" "100-0009" "1206 - CAPACITOR" "302.133" "29.527" "bottom"
- "C105A" "100-0009" "s" "306.197" "29.909" "bottom"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement