data using strings and regex, but now I'm stuck in this part, and I guess It's only possible with a DOM parser, but I don't want to use it, do you know how simple dom parsing for nested tags is done using strings library?
                  
                  
                
Sounds like a bad idea, you should use a DOM parser, what's the reason you don't want it?
 ㅤ
                          
                        
                      
                    
                    
                    
                    
                      Автор вопроса
                      
                      
                        
                          ㅤ
                          
                        
                      
                    
                    
                    
                    
                      Автор вопроса
                    
                    
                  The whole project was written with strings and regex, I hate to include the DOM parser now, I should've used it at the first place.
https://stackoverflow.com/a/1732454/1067003 sorry i had to send this
 ㅤ
                          
                        
                      
                    
                    
                    
                    
                      Автор вопроса
                      
                      
                        
                          ㅤ
                          
                        
                      
                    
                    
                    
                    
                      Автор вопроса
                    
                    
                  I've read about these, but as the other answer to this question describes: While arbitrary HTML with only a regex is impossible, it's sometimes appropriate to use them for parsing a limited, known set of HTML. It's been working as it should so far because most of the parts weren't a complex set of elements. I'm only stuck at this one part
🤨 that is a nonsensical reason sounds like "We started building with a hammer only, so I hate to use a saw for sawing now, can't I just saw with a hammer?!"
 ㅤ
                          
                        
                      
                    
                    
                    
                    
                      Автор вопроса
                      
                      
                        
                          ㅤ
                          
                        
                      
                    
                    
                    
                    
                      Автор вопроса
                    
                    
                  I have this Black & White view I agree lol
Обсуждают сегодня