Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
General
»
Regular Expression
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
Forum Rules
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
« previous
next »
Print
Pages: [
1
]
Author
Topic: Regular Expression (Read 1895 times)
xinyiman
Hero Member
Posts: 2261
Regular Expression
«
on:
June 09, 2015, 10:37:12 am »
Hello guys, I'm completely ignorant of regular expressions.
Who tells me how to read this type of string from a longer text ?!
<b><span class=\"class_pp\">1,33 <span class=\"sm\">EUR<\/span>
Thanks
Logged
Win10, Ubuntu and Mac
Lazarus: 2.1.0
FPC: 3.3.1
rasberryrabbit
Full Member
Posts: 151
Re: Regular Expression
«
Reply #1 on:
June 09, 2015, 10:45:56 am »
How about this?
Code:
[Select]
expression <b><span class=\\"class_pp\\">([^<]+)<span class=\\"sm\\">([^<]+)<\\/span>
Logged
Code is long, Life is short, AI is not your enemy.
xinyiman
Hero Member
Posts: 2261
Re: Regular Expression
«
Reply #2 on:
June 09, 2015, 12:54:38 pm »
Perfect.
Logged
Win10, Ubuntu and Mac
Lazarus: 2.1.0
FPC: 3.3.1
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
General
»
Regular Expression
TinyPortal
© 2005-2018