Infralution Support Forum Index Infralution Support
Support groups for Infralution products
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How can I ignore some tags when validating HTML?

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Infralution Support Forum Index -> Globalizer FAQ
View previous topic :: View next topic  
Author Message
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Mon Mar 14, 2016 7:37 am    Post subject: How can I ignore some tags when validating HTML? Reply with quote

Some times when validating HTML you may not be concerned if some markup tags are not present in the localized text. The standard "Match HTML Tags" validation rule matches all HTML tags using the following Regx Pattern:
Code:
<.*?>

You can change this to ignore certain tags by modifying the RegEx pattern. For instance to ignore <b></b> and <i> </i> tags change the RegEx pattern to:
Code:
(?!(</?b>|</?i>))<.*?>

_________________
Infralution Support
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Infralution Support Forum Index -> Globalizer FAQ All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group