-2
votes
1answer
27 views

how many block elements in html? [closed]

like <div> <h1>, <p>, <ul>, <table> are all block elements,anything else? I want to use JavaScript regx to replace all block elements with <br> other method to ...
1
vote
1answer
21 views

PHP preg_match - matching html elements

Ok so I have a regular expression I'm trying to use to match a certain pattern in some html files. Here's the preg_match statement: preg_match('@<'.$htmlElementType.' ...
-2
votes
1answer
57 views

JavaScript Regex formating string

I'm having difficulties in executing what I want to achieve, it may just be sleep deprivation but it's more likely that regex is not my strong suit, I just can't quite get my head around it, but ...
-4
votes
2answers
48 views

How to get a string between a rows <tr> from Html page which starts with some word and end with some word

I have an HTML page which has only one <table> tag but many <tr> and <td> tags. Example: <tr attributes > <td>Name1</td> <td>some text</td> ...
1
vote
1answer
42 views

Regex \n doesn't work

I'm trying to parse text out of two lines of HTML. Dim PattStats As New Regex("class=""head"">(.+?)</td>"+ "\n<td>(.+?)</td>") Dim makor As ...
-2
votes
3answers
51 views

Match Everything Between Specific UL

I am trying to match everything between this specific ul but I'm unable to get it to match anything. Any help would be appreciated. HTML <ul class="pagination_tabs" style="position: absolute; ...
6
votes
1answer
86 views

Stripping everything except html tags using perl

I have been searching for a way to strip everything out of an html document leaving ONLY the html tags. Is anyone aware of a method for this? I have experience with many perl modules and have searched ...
0
votes
2answers
50 views

template engine with regular expression [closed]

i want to wrote a simple template engine i have a html template file : <!DOCTYPE html> <html> <head> <title>title</title> </head> <body> <loop ...
0
votes
3answers
66 views

Regex expressions working in HTML but not with JQuery's test function

I'm using regex with HTML5's pattern function and its working as expected, but when I put that same function in a JQuery's .test function It doesn't work as expected. Any suggestions? <head> ...
0
votes
3answers
58 views

Parse html meta keywords using regex

I need to parse html meta keywords using regex. Sorce string is always in same format like: <meta name="description" content="description text"> <meta name="keywords" content="Keyword1, ...
1
vote
4answers
65 views

regular expression to unlink html code with javascript

I'm sorry,I can't believe this question is not solved in stackoverflow but I've been searching a lot and I don't find any solution. I want to change HTML code with regular expressions in this way: ...
-1
votes
0answers
20 views

HTML tag expression for websphinx

I'm new to websphinx and I am trying to use Crawler workbench of Websphinx. I am trying to extract text from pages which lie between <p></p> tags. I want to know the HTML tag expression ...
0
votes
0answers
73 views

JavaScript Regular Expression Different Behavior for Same Test

I am using a JavaScript regular expression to mark form fields as invalid. I have a form where I am checking for special characters, as they are not allowed in the form field value. Here is the HTML ...
2
votes
0answers
92 views

How would I properly use this Regex in C#? [duplicate]

I'm attempting to use regex to grab a URL from some HTML but it isn't working. <h3 class="(.*?)"><a onmousedown="(.*?)" href="(.*?)">(.*?)</a></h3> Could someone help me ...
1
vote
2answers
69 views

Determine if position in html string is within an anchor tag

I am currently using preg_match_all() to find all words that begin with a specific of preffix. For example, if the preffix is cat, then catsup would be considered a match whereas housecat would not. ...
0
votes
3answers
103 views

Replace string with a HTML tag [duplicate]

I am working on a Regex but its not working fine. My requirement is I have a string value and it has '##Anything##' tags like this. I want to replace this ##Anything## with a asp control ##name## ...
1
vote
3answers
71 views

Regex to parse html for sentences?

I know that HTML:Parser is a thing and from reading around, I've realized that trying to parse html with regex is usually a suboptimal way of doing things, but for a Perl class I'm currently trying to ...
0
votes
1answer
23 views

Can't get the RegEx right

The function checks out and everything works, I'm really just having trouble getting a pattern search that fits what I want. I'm trying to get a handle on RegEx's but they're a bit confusing to be ...
1
vote
2answers
51 views

How to extract the following HTML snippet with Python

I have the following Python code: def getAddress(text): text = re.sub('\t', '', text) text = re.sub('\n', '', text) blocks = re.findall('<div class="result-box" itemscope ...
0
votes
1answer
53 views

iframe Regular Expression form validation

I'm having trouble validating a form entry using a regular expression. I am only just learning regular expressions and specifically for this task. The problem: I have attempted to write a regex ...
0
votes
2answers
67 views

jQuery remove text from HTML tag

I am having problems using a regex to extract the <h1></h1> tag. I have the variable: var t = '<h1>Some cool text in this tag</h1>'; and I want to make it like this: ...
-1
votes
1answer
26 views

Get data between any two tags by vb.net [closed]

sir i want to get data between to tag... example:(showing in my view source) <img class='stat_icon' src='/images/green.png'> **data to be extracted**</a> or like <input type=hidden ...
0
votes
2answers
43 views

Using regexes to process HTML of a *known structure*

We're using a custom framework built on top of ASP.NET MVC to generate HTML from our object models at runtime without writing any views. This approach has been successful in allowing rapid application ...
1
vote
2answers
39 views

Safe to use Regex for this? (HTML)

I'm parsing some HTML, and I need to get all html in the body tag. My target string will always look something like this: <body><div><img src="" />text etc</div></body> ...
1
vote
3answers
51 views

get a specific row from the html with a specific word using regular expression

I want to fetch all rows having a specific word/string in its.. and store it in array I have a string as below <tr> <td>Total</td> <td>123</td> ...
0
votes
2answers
84 views

Replacing HTML String & Avoiding Tags (regex)

I'm trying to use JS to replace a specific string within a string that contains html tags+attributes and styles while avoiding the inner side of the tags to be read or matched (and keep the original ...
-3
votes
0answers
38 views

Regular Expressions: Returning the string doubled from MySQL database [closed]

I have a problem: I have multiple articles in a database: All articles are in one table cell divided by a - (minus sign): Example: This is article Article 1 - This is article Article 2 - This is ...
-4
votes
2answers
51 views

How to replace all tags “<br>” (and its variants) by System.getProperty (“line.separator”)? [closed]

How to replace all tags <br> <br /> </br> <BR> </BR> by System.getProperty ("line.separator") in Java ? Unfortunately this question can not help me
1
vote
2answers
56 views

Regex extract html source with multiple elements

Before you tell me not to use Regex to parse html, I'm aware of this but my company uses Iconico Data Extractor to extract data from its website, and it allows you to create custom scripts, but it has ...
0
votes
2answers
80 views

PHP, extracting mailing address

I have a problem that I need help fixing. I am trying to create a script that crawls websites for mailing addresses. Mostly German addresses, but I am unsure of how to create said script, I have ...

1 2 3 4 5 55
15 30 50 per page